Question: 2. Write a program that determines the final amount to pay for a meal: Enter the quantities for three meal items. Find the price

2. Write a program that determines the final amount to pay for a meal: Enter the quantities for three meal items. Find the price to pay for each item, where each amount is multiplied by a different price per item. e.g. amount * price Find the total amount to pay by adding all the prices to pay for each item. Show the total amount to pay for each item and the overall total, formatted to show two decimal places each. Sample Run: (In this run, the first item is $16.25 each, the second item is $3.55 each and the third item is $4.45 each.) Sample Run: How many main courses do you want? 5 How many beverages do you want? 4 How many desserts do you want? 3 The total price of the main course is $81.25 The total price of the beverages is $14.20 The total price of the desserts is $13.35 Your total price of everything is $108.80 >>> Submit the code of each program for grading to Moodle.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
