Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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);
}
}
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);
}
}