Question: Design (pseudocode) for a program (name it BestDeal) to determine the best deal when buying a small box of apples vs. a large box of
Design (pseudocode) for a program (name it BestDeal) to determine the best deal when buying a small box of apples vs. a large box of apples. The program asks the user to enter the weight and price of each box and then determines which box has a better value. The boxes may have the same value. Document your code and properly label the input prompts and the outputs as shown below.
Sample run 1:
Small box weight:5 Pounds
Small box price:10 Dollars
Large box weight:12 Pounds
Large box price:18 Dollars
Judgment:The large box is a better deal
Sample run 2:
Small box weight:5 Pounds
Small box price:10 Dollars
Large box weight:10 Pounds
Large box prices:20 Dollars
Judgment:Both boxes are of the same value
Sample run 3:
Small box weight:5 Pounds
Small box price:10 Dollars
Large box weight:10 Pounds
Large box price:28 Dollars
Judgment:The smaller box is a better deal
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
