Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVA CODING In this exercise, you will be writing an application that will calculate the tip for a restaurant check. The user will enter the
JAVA CODING
In this exercise, you will be writing an application that will calculate the tip for a restaurant check. The user will enter the amount of the check and the percentage of tip they wish to pay. The percentage (tip amount) should be input as an integer between 0 and 100 The tip is then determined by the formula: tipAmount = check * percentage / 100 where check is the amount of the check, percentage is the tip percentage, and tipAmount is the calculated tip amount. Additionally, if the user enters less than a 15% tip you should output a message warning telling them it is below the standards. If the user enters greater than a 25% tip output a message telling them they are being generous. Run your program three times with the following inputs: Run 1: check: 10.50 tip%: 10 Run 2: check: 25.75 tip%: 18 Run 3: check: 17.77 tip %: 30
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