Question: Do not use a list or dictionary for this program. This program needs to take an order for a restraunt. The items and their costs
Do not use a list or dictionary for this program. This program needs to take an order for a restraunt. The items and their costs are 1. Bagel ($3.00) 2. Black Coffee ($2.00) 3. Frappuccino ($3.00) 4. Green tea ($1.75) 5. Black Tea $2.88. The program needs to ask what item is wanted and if the item is valid then ask what quantity of that item is needed. Then keep asking what items and quantities until nothing is entered (an empty string). If an invalid item is entered do not end the program just ignore it, and if the user doesnt enter a valid item dont ask for the quantity of that item. The item quantity must always be positive and if not then keep asking for the quantity until a positive value is entered. When the order is done being entered print out each of the items that were ordered and the quantity of that item, as well as the total items ordered. Print the cost before taxes , and the cost of taxes (7.75%). Round the tax to 2 decimal places. Print the total due. Dollar amounts need to have to decimal places when printed. The outputs need to be in a table with labels left aligned and number values of the $ values and quantities should be right aligned.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
