Question: Write a program that computes the tax and tip on a restaurant bill. The program should ask the user to enter the charge for the
Write a program that computes the tax and tip on a restaurant bill. The program should ask the user to enter the charge for the meal. The tax should be 6.25 percent of the meal charge. The tip should be 15 percent. Tip would be on the meal charge and tax. Declare both the tax and tip variables as final.
Display the meal charge, tax amount, tip amount, and the total bill on the screen.
You can use the keyboard or Dialog Boxes for input and output.
All input and output should be double type.
Example input
Enter the charge for the meal:
Example output: Meal Charge: $
Tax amount: $
Tip amount: $
Total: $
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
