Professional Documents
Culture Documents
Scanner;
public class ChatMe {
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! ^-^");
}
}