Write a program to solve a simple payroll calculation. Find the amount of pay given, hours worked, and hourly rate. (The formula to calculate payroll is pay = hourly rate * hours worked.) Use these values to test the calculation: Problem 1A (hours = 30 and rate = 8.52) and Problem 1B (hours = 53 and rate = 11.54). Display hourly rate, hours worked, and pay. Use the print command and make basic mathematical calculations. Solution Payroll.java import java.util.Scanner; public class Payroll { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan = new Scanner(System.in); System.out.println(\"Enter Number of Hours :\"); int hours = scan.nextInt(); System.out.println(\"Enter Hourly Rate :\"); double rate = scan.nextDouble(); double pay = hours * rate; System.out.println(\"Number of Hours :\"+hours); System.out.println(\"Hourly Rate :\"+rate); System.out.println(\"Pays :\"+pay); } } Output: Enter Number of Hours : 30 Enter Hourly Rate : 8.52 Number of Hours :30 Hourly Rate :8.52 Pays :255.6 Enter Number of Hours : 53 Enter Hourly Rate : 11.54 Number of Hours :53 Hourly Rate :11.54 Pays :611.62 .