stoyanoff

07. Projects Creation

Jun 9th, 2020
961
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1.  
  2. import java.util.Scanner;
  3.  
  4. public class Architect {
  5.     public static void main(String[] args) {
  6.         Scanner myScan = new Scanner(System.in);
  7.         String name = myScan.nextLine();
  8.         int projects = Integer.parseInt(myScan.nextLine());
  9.         int projectHours = projects * 3;
  10.         System.out.printf("The architect %s will need %s hours to complete %s project/s.", name, projectHours, projects);
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment