Advertisement
myrdok123

07. Projects Creation

Mar 9th, 2024
697
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class ProjectsCreation {
  4.  
  5.     public static void main(String[] args) {
  6.         Scanner scanner = new Scanner(System.in);
  7.  
  8.  
  9.         String name = scanner.nextLine();
  10.         int countProjects = Integer.parseInt(scanner.nextLine());
  11.  
  12.         int totalHours = countProjects * 3;
  13.  
  14.         System.out.printf("The architect %s will need %d hours to complete %d project/s.", name, totalHours, countProjects);
  15.     }
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement