Question: c + + , How can I use void and double function into the Food Cart Program? thanks like: void welcome ( ) , void

c++, How can I use void and double function into the Food Cart Program? thanks
like:
void welcome(),
void displayMenu(),
void readOption(int &option),
void readInt(string prompt, int &num),
void readDouble(string prompt, double &num),
void placeOrder(double &cost),
double tipDiscount(double &tip, double &discount, double cost).
*****
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

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 Programming Questions!