Advertisement
desislava_topuzakova

Untitled

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