Установить Steam
войти
|
язык
简体中文 (упрощенный китайский)
繁體中文 (традиционный китайский)
日本語 (японский)
한국어 (корейский)
ไทย (тайский)
Български (болгарский)
Čeština (чешский)
Dansk (датский)
Deutsch (немецкий)
English (английский)
Español - España (испанский)
Español - Latinoamérica (латиноам. испанский)
Ελληνικά (греческий)
Français (французский)
Italiano (итальянский)
Bahasa Indonesia (индонезийский)
Magyar (венгерский)
Nederlands (нидерландский)
Norsk (норвежский)
Polski (польский)
Português (португальский)
Português-Brasil (бразильский португальский)
Română (румынский)
Suomi (финский)
Svenska (шведский)
Türkçe (турецкий)
Tiếng Việt (вьетнамский)
Українська (украинский)
Сообщить о проблеме с переводом
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);
}
}