Advertisement
Guest User

ProjectsCreation

a guest
Sep 10th, 2019
442
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.*;
  2.  
  3. public class Main {
  4.  
  5. public static void main(String[] args) {
  6. Scanner scanner = new Scanner(System.in);
  7. // 1 project ~ 3h
  8. String firstName = scanner.nextLine();
  9. int projects = Integer.parseInt(scanner.nextLine());
  10.  
  11. double hoursP = projects * 3;
  12.  
  13. System.out.printf("The architect %s will need %.0f hours to complete %d project/s.", firstName, hoursP, projects);
  14.  
  15.  
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement