Chapter 1 - Introduction to Java Assignment XXXXXXXXXXpoints): Tip Rater Assignment Your goal is to ask for the total bill and the amount that the user gave as a tip and determine based on a set of...

Has to be a .zip file


Chapter 1 - Introduction to Java Assignment 4-2 (20 points): Tip Rater Assignment Your goal is to ask for the total bill and the amount that the user gave as a tip and determine based on a set of criteria whether that tip was a good amount. • Prompt the user for the total bill amount. • Prompt the user for the tip that they left. • Use the following equation to calculate the tip percentage: tip amount/total bill • Based on the tip percentage that was calculated, determine a message to display that will tell the user how good their tip was. Criteria: • Tip less then 0 or greater than 1 • Tip is between 0 (including 0) and 0.05 (including 0.05) • Tip is between 0.05 (not including 0.05) and 0.1 (including 0.1) • Tip is between 0.1 (not including 0.1) and 0.2 (including 0.2) • Tip is between 0.2 (not including 0.2) and 0.3 (including 0.30) • Tip is greater than 0.3 • Display the tip percentage that the user left along with a message as to how they rank as a tipper in an output box. Rubric: • Use an input box to prompt the user for the total bill amount and parse the result as a double. (2 points) • Use an input box to prompt the user for the tip that they left and parse the result as a double. (2 points) • Calculate the tip percentage. (2 points) • Create conditionals to determine their rank as a tipper (12 points) • Display the tip percentage that the user left along with a message as to how they rank as a tipper in an output box. (2 points)
Oct 13, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here