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: 1 . Place an order 2 .

Welcome to my Food Cart Program!
What would you like to do today?
Pick an option from below:
1. Place an order
2. Quit
>>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!
Do you want another item? (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: $0.71
Your final total is: $34.79
Welcome to my Food Cart Program!
What would you like to do today?
Pick an option from below:
1. Place an order
2. 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!
Do you want another item? (y/n): n
Your total is: $79.00
Enter the amount of tip you want to add $: 10.00
Your total is: $89.00
You get a 5% discount!
Your discount is: $4.45
Your final total is: $84.55
Welcome to my Food Cart Program!
What would you like to do today?
Pick an option from below:
1. Place an order
2. Quit
>>2
Thank you for using my program!

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

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions

Question

Assess the requirements for strategic LMD

Answered: 1 week ago

Question

How can e-learning benefit organizations and individuals?

Answered: 1 week ago