Advertisement
veronikaaa86

07. Projects Creation

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