Question: # student name 2 0 2 4 ch 0 2 _ lab 0 1 ' ' ' this program will accept input of a meal
# student name chlab
this program will accept input of a meal cost and then:
calculate the sales amount
calculate the tip amount
print the results to include: meal amount, tip amount, tax amount, total cost
# program constants
TAXRATE
TIPRATE
# data input
mealAmtfloatinputplease input the amount of the meal
# calculations
taxAmtmealAmt TAXRATE
# print results
printfmeal cost is mealAmt: f
printftax amount is taxAmt: f
printftip amount is tipAmt: f
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
