A program is needed that requests from the end-user the subtotal and gratuity rate, and then computes the gratuity and total, and displays to the end-user the subtotal, gratuity amount and the total amount. The Output must be labeled

Some processing requirements:
name the program - Gratuity.java
initialize all variables
Use the Scanner class to accept the input
Use the System Class to display the output
you will prompt the end user for the bill amount
you will prompt the end user for the gratuity rate
be sure to specify to the user how to enter in the gratuity amount either has a decimal or whole number. Because it will make a difference when calculating for example let's say you assume (and you know what they say about that...) the user will enter in the value in a decimal format; .20 but they enter in 20 that gives the server a great tip! But what about the other way, your program expects a whole number and you enter in a decimal - almost stiffing the server!
comment the top of your program will the following:
/* Program Name:
Programmer:
Date:
Purpose:
*/


I am not Sure if this is right can someone please help

Prompt for subtotal_cost
Read subtotal_cost value
Calculate the total_due
gratuity_cost=subtotal_cost *15%
total_due=subtotal_cost+ gratuity_cost
Print "Subtotal Cost:" subtotal_cost
Print "Gratuity Cost:" gratuity_cost
Print "The Total Amount Due is" total_duesure if this will be acceptable or is correct;

Any help will gladly be appreciated.