Caffeine
Tyler   Wisconsin, United States
 
 
Hey, ♥♥♥♥ you.
Currently Offline
Comments
Turd Sandwich 16 Sep, 2009 @ 2:40pm 
Andy Glatzel
SE1011
Fall 2009
9/16/2009
*/



package glatzela;

import java.util.Scanner;

public class Lab1 {

/**
* @param args
*/
public static void main(String[] args) {
Scanner in;
in = new Scanner(System.in);

System.out.print("Enter the number of hours worked per week:");
int hoursWorked = in.nextInt();
System.out.print("Enter the number of weeks of vaction taken:");
int vacationWeeks = in.nextInt();
do {
System.out.print("You fool tell me the real amount of vacation weeks you took next time.");
}while (vacationWeeks > 52);
System.out.print("Enter your hourly wage(in dollars):");
double hourlyWage = in.nextDouble();

double yearlyEarnings = hoursWorked * (52- vacationWeeks);
System.out.print("Yearly Earnings=");
System.out.print(yearlyEarnings);


}

}
Turd Sandwich 16 Sep, 2009 @ 2:11pm 
Andy Glatzel
SE1011
Fall 2009
9/16/2009
*/



package glatzela;

import java.util.Scanner;

public class Lab1 {

/**
* @param args
*/
public static void main(String[] args) {
Scanner in;
in = new Scanner(System.in);

System.out.print("Enter the numbe of hours worked per week:");
int hoursWorked = in.nextInt();
System.out.print("Enter the number of weeks of vaction taken:");
int vacationWeeks = in.nextInt();
System.out.print("Enter your hourly wage(in dollars):");
double hourlyWage = in.nextDouble();

double yearlyEarnings = hoursWorked * (52- vacationWeeks);
System.out.print("Yearly Earnings=");
System.out.print(yearlyEarnings);


}

}