Question: Create an application in visual stuido in c code, not c + + ! Start out by creating a new C project named as stated
Create an application in visual stuido in c code, not c
Start out by creating a new C project named as stated
Add a source.c file
For this portion of the mastery you will need to add the following functions:
Void Functions no Parameters passed
Random discount
Generates and stores the random discountPrints statement telling customer the discount percentage for their ticket
Void Functions with Parameters passed
Print Receipt
Passed total prices for drinks, appetizers, entrees, desserts, sub total, discount, total, tax amount, bill total, tip amount, total due
Value Returning Functions with Parameters passed
Subtotal Calculation
Passed total prices for drinks, appetizers, entrees, and desserts orderedReturns subtotal back to main
Overall Bill Calculation
Passed the discount amount and the subtotal
Does all calculations for total, tax amount, bill total, tip amount from switch done previous to set tip percentage and total amount dueReturns total amount due back to main
Value Returning Functions no Parameters passed
Drink orders
Return total price for drinks back to main
Appetizer orders
Return total price for appetizers back to main
Entree orders
Return total price for entrees back to main
Dessert orders
Return total price for desserts back to main
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
