You are on page 1of 2

import java.util.

Scanner;
public class ChatMe {

public static void main(String[] args) throws InterruptedException {

System.out.println("Good Day! I am Bartleby ^-^");


Thread.sleep(1000);
System.out.println("Your school attendance assistant!");
Thread.sleep(2000);
Scanner idSchool = new Scanner(System.in);
System.out.print("Please input your School ID: ");
int id = idSchool.nextInt();
if (id == 182103) {
Thread.sleep(1000);
System.out.println("You are Kenny Gie V. Binghay");
}else if (id == 251436) {
Thread.sleep(1000);
System.out.println("You are Bridget Datoy");
}
Thread.sleep(1000);
System.out.println("Would you be attending school today? ");
Scanner chOse = new Scanner(System.in);
Thread.sleep(1100);
System.out.print("Type Yes or No: ");
String decChose = chOse.nextLine();

if (decChose.equalsIgnoreCase("Yes")) {
Thread.sleep(1000);
System.out.println("Your attendance have been checked");
Thread.sleep(1000);
System.out.println("Standby as we generate your attendance code
^-^");
Thread.sleep(2000);
System.out.println("Generating.....");
Thread.sleep(3000);
int min = 200;
int max = 400;
int b = (int)(Math.random()*(max-min+1)+min);
System.out.println("Your attendance code is: " + b);
Thread.sleep(1000);
System.out.println("Please input this code to your respective
classroom device");
Thread.sleep(1000);
System.out.print("Have a Jolly Good Day! ^-^");

}else {
Thread.sleep(1000);
Scanner reason = new Scanner(System.in);
System.out.print("Please state your reason as to why you're not
attending: ");
String reason1 = reason.nextLine();
Thread.sleep(1000);
System.out.println("Noted! Your teacher has been notified");
Thread.sleep(1000);
System.out.println("Please provide a confirmation note from a parent or
a guardian to your teacher once present.");
Thread.sleep(1000);
System.out.print("Have a Jolly Good day! ^-^");
}
}

You might also like