Advertisement
Deiancom

ProjectCreation

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