//This program solves the gratuity and subtotal!
import java.util.Scanner;
public class GratuityRate {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
double gratuity = input.nextDouble();
double subtotal = input.nextDouble();
double total = gratuity / 100 * subtotal + subtotal;
System.out.println("Enter the amount of gratuity and subtotal given:"total);
}
}
i need to create a program to help solve the gratuity and subtotal to create a final total, can somebody help
--- Update ---
Nevermind i have solved it.