Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class BiggerNumber {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String typeProjects = scanner.nextLine();
- Double rows = Double.parseDouble(scanner.nextLine());
- Double columns = Double.parseDouble(scanner.nextLine());
- Double income = 0.0;
- switch(typeProjects){
- case "Premiere":
- income = rows * columns * 12.00;
- break;
- case "Normal":
- income = rows * columns * 7.50;
- break;
- case "Discount":
- income = rows * columns * 5.00;
- break;
- }
- System.out.printf("%.2f",income);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement