Answer to Question #267688 in Algorithms for israel

Question #267688

Write an algorithm for a program that computes that amount of money a computer club will receive from proceeds of their Magwinya café sales project. The Magwinya are sold in cases that contain a dozen in each case. Allow the user to enter the number of cases sold and the sale price per gwinya. Each case contains 12 magwinya; each case is purchased at R15.00 per case from a local vendor. The computer club is required to give the SRC 10% of their earnings. Display their proceeds formatted with currency. Display instructions to the user about the application. Display all inputs and calculated values. Write appropriate methods for your solution.


1
Expert's answer
2021-11-18T06:57:13-0500
(1) Prompt user to enter the number of cases
(2) Save answer as Num
(3) Prompt user to enter the price
(4) Save answer as Price
(5) Set Magwinya_sold as 12*Num
(6) Set Earnings as Magwinya_sold*Price
(7) Set Case_cost as 15*Num
(8) Set SRC_part as 0.1*Earnings
(9) Set Revenue as Earnings - Case_cost - SRC_part
(10) Display Magwinya_sold and Price
(11) Display Earnings, Case_cost, SRC_part, and Revenue

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS