Question: Financial Application (Calculating Tips) Write a program in the Tips class that: `reads the subtotal from keyboard input into a variable called sub Total .

Financial Application (Calculating Tips) Write a
Financial Application (Calculating Tips) Write a program in the Tips class that: `reads the subtotal from keyboard input into a variable called sub Total . reads the gratuity rate from keyboard input into a variable called gratuity Note that the input for gratuity will need to be altered to be a value less than 1 compute the gratuity and display that to the terminal . compute the total (the subtotal plus the calculated gratuity) and display that to the terminal Note: use the exact prompts from the example below. For example, if the user enters 10 for subtotal and 15 for the gratuity rate, the program displays $1.5 as gratuity and $11.5 as total. Please enter the subtotal: 10 Please enter the gratuity rate: 15 Gratuity: $1.5 Total: $11.5 Please complete the Javadoc comments and add any comments you believe are necessary to determine what the program is doing

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