Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Day05C {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- String courseName, strand, tvi;
- int hoursTaken;
- System.out.println("Enter Course Name: ");
- courseName = sc.nextLine();
- System.out.println("Enter hours of training: ");
- hoursTaken = sc.nextInt();
- sc.nextLine();// sasalo ito ng skip ng nextInt()
- System.out.println("Enter strand: ");
- strand = sc.nextLine();
- System.out.println("Enter TVI that caters: ");
- tvi = sc.nextLine();
- System.out.println("======");
- System.out.println("The " + courseName + " course "
- + " of " + strand + " strand takes "
- + hoursTaken + " hours / " + (hoursTaken/8) + " days to complete");
- System.out.println("A TVI that have this course is: " + tvi);
- // Paano kung ganito dapat ang user input:
- // Enter Course Name: ______
- // Enter hours of training: ______
- // Enter strand: ______
- // Enter TVI that caters: ______
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment