Question: Please see my code it doesnt compile and shows lots of errors Exercise 3: Restaurant You will open a restaurant that sells three items: Salad




Exercise 3: Restaurant You will open a restaurant that sells three items: Salad ($3.50 each), Pizza ($7 25 each), and Ice Cream ($5.50). Your restaurant will do the following 1. Ask the user if they want Salad then Pizza then Ice Cream . In all cases, you are prompting them for a yeso answer. For yes they can type y or 'Y, and for no they can type 'n' or 'N . If they want an item, find out how many . The user must not be allowed to order less than zero of an tom, they do, imply set the amount they order to zero 2. Ask them for their age, this will affect the discount Anyone 55 or older gets a 10% discount off the total cost AFTER tax . Anyone 8 or younger gets all the ice cream they want for FREE! (This is not taxed!) 3. Display a cost per item (before any discounts), a subtotal (before any discounts), a tax amount a discount amount, and a grand total Tax is 25% (Yikes!) Sample run GNU nano 2.9.3 Dinclude
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
