Don't worry about implementing class Paycheck for now. Use your imagination to design and print any paycheck you like, as long as it has the following info:Employee name, amount to pay, and a line for signature.
import java.util.Scanner;
class MONEYMONEYMONEY {
public static void main(String[] args) {
Scanner Fredrick = new Scanner(System.in);
System.out.println("Please enter the name of the employee");
String name = Fredrick.nextLine();
System.out.println("Please enter the hourly wage of " + name);
double wage = Fredrick.nextDouble();
System.out.println("Please enter the number of hours " + name + " has worked this week");
double time = Fredrick.nextDouble();
double pay = 0;
if(time > 40){
pay = 40 * wage + (time-40) * wage * 1.5;
}
else{
pay = time*wage;
}https://www.codiva.io/profile
pay = (double) Math.round(pay*100);
pay = pay/100;
char tm = 8482;
System.out.println("__________________________________________________________________________");
System.out.println();
System.out.println("River Bank" + tm + " Date: Binuary 32, -0006");
System.out.println("Pay to the order of: " + name);
System.out.println("Pay: $" + pay);
System.out.println("Payable at: Walgreens");
System.out.println(" Signature:_______________________");
System.out.println();
System.out.println(" 11111111111111111111111111111111111111111110 ");
System.out.println("__________________________________________________________________________");
}
}