Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Welcome to my Food Cart Program! What would you like to do today? Pick an option from below: Place an order Quit > > 9

Welcome to my Food Cart Program!
What would you like to do today?
Pick an option from below:
Place an order
Quit
>>9
Invalid Option! Please choose 1-2!
>>1
Enter the name of your item: Pasta
Enter the cost of your item $: 15.75
Do you want another item? (y/n): y
Enter the name of your item: Bowl
Enter the cost of your item $: 12.75
Do you want another item? (y/n): y
Enter the name of your item: Soda
Enter the cost of your item $: 3.50
Do you want another item? (y/n): x
Invalid Option! Please choose y/n!
>> n
Your total is: $32.00
Enter the amount of tip you want to add $: 3.50
Your total is: $35.50
You get a 5% discount!
Your discount is $1.78
Your final total is: $33.73
What would you like to do today?
Pick an option from below:
Place an order
Quit
>>1
Enter the name of your item: Fajita Bowl
Enter the cost of your item $: 20.75
Do you want another item? (y/n): y
Enter the name of your item: Vietnamese plate
Enter the cost of your item $: 22.75
Do you want another item? (y/n): y
Enter the name of your item: Soda
Enter the cost of your item $: 3.50
Do you want another item? (y/n): x
Invalid Option! Please choose y/n!
>> n
Your total is: $47.00
Enter the amount of tip you want to add $: 10.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions