Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help in C + + Welcome to my Food Cart Program! What would you like to do today? Pick an option from below: Place

Please help in C++
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
Your total is: $57.00
You get a 10% discount!
Your discount is $5.70
Your final total is: $51.30
What would you like to do today?
Pick an option from below:
Place an order
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

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions