Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class ProjectsCreation {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String name = scanner.nextLine();
- int countProjects = Integer.parseInt(scanner.nextLine());
- //The architect George will need 12 hours to complete 4 project/s.
- int hoursForOneProject = 3;
- int totalHours = countProjects * hoursForOneProject;
- System.out.printf("The architect %s will need %d hours to complete %d project/s.", name, totalHours, countProjects);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement