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

 

4 values input – Water Cost, Flavour Cost, Labour Cost, Selling Price (2 marks)

Award 2 or 3 values input 1 mark

Manufacturing Cost = Water Cost + Flavouring Cost + Labour (1 mark)

Profit = Selling Price – Manufacturing Cost (1 mark)

Output of Profit (1 mark)

If calculation combined into 1 line then award 2 marks.

Ignore whether candidate ticks pseudocode box or complete program box.

Candidates are asked to “write a program” and therefore must include details on the various inputs and calculations.

For example, “Get the 4 inputs” would be awarded no marks

Leave a Reply

Your email address will not be published. Required fields are marked *