Question: The program prompts the consumer to enter the weight and price of package 1 , then does the same for package 2 , and displays
The program prompts the consumer to enter the weight and price of package then does the same for package and displays the results to indicate which package has a worse unit price of the same material. Later, the program asks consumers which product they would like to order package or and how many of it Depending on the consumers order, the program displays the total cost. It is assumed that the weight of all packages is measured in kg The program should check to be sure that the inputs of weight, price, and number of packages to order are all positive values. If not, the program ends after telling the consumer that inputs are invalid.
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
