Advertisement
yovkovbpfps

Project Creation

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