Category Archives: Software Design and Development

2014 – Q16 – (ii)

Jack has been asked to write a program to calculate the potential profit in a soft drinks business. The program will store the costs involved in producing and selling one litre of each drink.

Jack adapts the program to ensure that water cost can only be entered as always greater than or equal to £0.10 and less than or equal to £0.50 per litre.

Complete the table below to show four different examples of test data  for water cost  and the type of each example. (3)

2014 - q16 cii

Answer

2014 – Q16 (c) – (i)

Jack has been asked to write a program to calculate the potential profit in a soft drinks business. The program will store the costs involved in producing and selling one litre of each drink.

Jack adapts the program to ensure that water cost can only be entered as always greater than or equal to £0.10 and less than or equal to £0.50 per litre.

State the standard algorithm that is used to ensure that data entered is acceptable. (1)

Answer

2014 – Q16 (b)

Jack has been asked to write a program to calculate the potential profit in a soft drinks business. The program will store the costs involved in producing and selling one litre of each drink.

The following calculations will be used to output the profit made for each litre of drink.

Manufacturing Cost = Water Cost + Flavouring Cost + Labour Cost

Profit = Selling Cost – Manufacturing Cost

Using pseudocode or a programming language of your choice, write a program to enter the required data, then calculate and display the profit for the soft drink business. (5)

2014 - Q16 b

 

Answer

2014 – Q16 (a)

Jack has been asked to write a program to calculate the potential profit in a soft drinks business. The program will store the costs involved in producing and selling one litre of each drink.

The following calculations will be used to output the profit made for each litre of drink.

Manufacturing Cost = Water Cost + Flavouring Cost + Labour Cost

Profit = Selling Cost – Manufacturing Cost

State the number of variables Jack would require in his program. (1)

Answer

2014 – Q14

Employees can only access their company network if they enter a correct username and password. A validation program is being developed and will run each time an employee logs on.

An extract of pseudocode from the program is shown below.

2014 - Q14

An error is noticed when the program is tested.

(a) Identify the line containing a logic error. (1)

(b) State how this error should be corrected. (1)

Answer