Question
Write a program in JAVA to help the user calculate different tip amounts for a restaurant server based on their food bill. The program should
Write a program in JAVA to help the user calculate different tip amounts for a restaurant server based on their food bill. The program should ask the user to input the cost of the bill before tax and tip through the console using the Scanner class. The program should use this bill amount to calculate a 15% tip, 18% tip and 20% tip. Name your source code file (and class) FirstnameLastnameProgram1.java substituting your actual name in place of FirstnameLastname. The program output to the console should be as follows if the user entered 25 for the bill: Tip Percentage Tip Amount 15% 3.75 18% 4.5 20% 5
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started