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

 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 ($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
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 ($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 > choice : if (choice aw 'y' || choice --'Y') ! std::cout > salads, std::cout > choice: if (choices'y' || choices'Y') std::cout > pizzas std::cout > choice if (choice 'y'll choice ='Y'> std::cout > ice creams: std::cout >age ? std::cin>> $" $" $" > choice : 1f (choice = 'y' || choice =='Y') sta::cout > ice creams : std::cout >age : std::cin>> " $" $" $" =55) discount- (tax +subtotal)*0.1 ; } if( age =55) total=subtotal+tax-discount: Get Help Write Out Where Is Cut Text Justify Cur POS - Undo cycle 3.eecs.ku.edu - PuTTY GNU nano 2.9.3 else subtotal=salads 3.50 + pizzas *3.50 + ice creams*5.50 ; std::cout =55) [ discount= (tax +subtotal)*0.1 ; } if( age =55) total=subtotal+tax-discount; } else (total=subtotal +tax; } std::cout $35.00 Pizza @ $7.25 ==> $0.00 10 Ice Cream @ $5.50 ==> $55.00 Subtotal: $90.00 Tax: $8.75 Discount: $55.00 Total: $43.75 please come again! NOTE: For the rounding to two digits use this: int main() { std::cout.precision (2); std::cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!