Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class ProjectsCreation {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String architectName = scanner.nextLine();
- int project = Integer.parseInt(scanner.nextLine());
- int totalHours = project * 3;
- System.out.println("The architect " + architectName + " will need " + totalHours + " hours to complete " + project + " project/s.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement