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 readOptionint &option
void readIntstring prompt, int &num
void readDoublestring prompt, double &num
void placeOrderdouble &cost
double tipDiscountdouble &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
Invalid Option! Please choose
Enter the name of your item: Pasta
Enter the cost of your item $:
Do you want another item? yn: y
Enter the name of your item: Bowl
Enter the cost of your item $:
Do you want another item? yn: y
Enter the name of your item: Soda
Enter the cost of your item $:
Do you want another item? yn: x
Invalid Option! Please choose yn
n
Your total is: $
Enter the amount of tip you want to add $:
Your total is: $
You get a discount!
Your discount is $
Your final total is: $
What would you like to do today?
Pick an option from below:
Place an order
Quit
Enter the name of your item: Fajita Bowl
Enter the cost of your item $:
Do you want another item? yn: y
Enter the name of your item: Vietnamese plate
Enter the cost of your item $:
Do you want another item? yn: y
Enter the name of your item: Soda
Enter the cost of your item $:
Do you want another item? yn: x
Invalid Option! Please choose yn
n
Your total is: $
Enter the amount of tip you want to add $:
Your total is: $
You get a discount!
Your discount is $
Your final total is: $
What would you like to do today?
Pick an option from below:
Place an order
Quit
Thank you for using my program!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
