Complete the program below that prints the wages for 3 employees based on the following: Regular work hour = 40. Additional hours over 40 paid at 1.5 *Regular rate. The program will prompt the user to enter the hours worked and the hourly rate for each employee. The program will read the hours worked and the hourly rate for each employee by printing the following messages: Enter hourly rate : 10 Enter hours worked : 42 Pay for Employee Number 1 is 430 public class CalculateWage { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); /* Write your program here */ Scanner.close(); } }
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Complete the program below that prints the wages for 3 employees based on the following:
Regular work hour = 40.
Additional hours over 40 paid at 1.5 *Regular rate.
The program will prompt the user to enter the hours worked and the hourly rate for each employee.
The program will read the hours worked and the hourly rate for each employee by printing the following messages:
Enter hourly rate : 10
Enter hours worked : 42
Pay for Employee Number 1 is 430
public class CalculateWage {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
/* Write your program here */
Scanner.close();
}
}
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images