Advertisement
heysoul_sisypus

PartTimeEmployee

Jan 30th, 2023
829
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. package employee;
  2. import java.util.*;
  3. /**
  4.  *
  5.  * @author Ian
  6.  */
  7. public class PartTimeEmployee {
  8.  Scanner Scan = new Scanner(System.in);
  9.  public double wage;
  10.  
  11.  public void setWage(){
  12.   int hoursWorked = Scan.nextInt();
  13.   double ratePerHour = Scan.nextDouble();
  14.   Scan.close();
  15.   double hWorked = hoursWorked;
  16.   wage = ratePerHour*hWorked;
  17.  }
  18.  public double getWage(double wage){return wage;}
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement