Advertisement
veronikaaa86

Untitled

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