myrdok123

07. Projects Creation

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