Category Archives: Writing Code

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