Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package employee;
- import java.util.*;
- /**
- *
- * @author Ian
- */
- public class PartTimeEmployee {
- Scanner Scan = new Scanner(System.in);
- public double wage;
- public void setWage(){
- int hoursWorked = Scan.nextInt();
- double ratePerHour = Scan.nextDouble();
- Scan.close();
- double hWorked = hoursWorked;
- wage = ratePerHour*hWorked;
- }
- public double getWage(double wage){return wage;}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement