Question: use elulel spaces or tab escape sequences 36. (10 pts) Write a program that will calculate the gratuity by reading in the bill (subtotal) and

 use elulel spaces or tab escape sequences 36. (10 pts) Write

use elulel spaces or tab escape sequences 36. (10 pts) Write a program that will calculate the gratuity by reading in the bill (subtotal) and gratuity rate. Echo the inputs and output the result. For example, if the subtotal is $10 and the gratuity rate is 15%, output $10.00 + $1.50=$11.50 Include the dollar sign (s) in your output Your code must be syntactically correct (no need to write comments) Prompt for the subtotal and gratuity rate Calculate the total and display to exactly 2 decimal places Sample output Enter the subtotal: 10 Enter the gratuity rate (eg. enter 15 for 1596): 15 $10.00 + $1.50 = $11.50

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