PERHATIAN!
CODING INI HANYALAH REKAAN SEMATA2
TIADA KAITAN BAGI YANG HIDUP ATAU YANG TELAH MENINGGAL DUNIA..
import java.util.Scanner;
public class FinalExam
{
private String smode1="gile-gile";
private String smode2="study sampai sakit tengkuk";
private String smode3="biase2 je";
private String smode4="sampai takder mood nak study";
private String smode5="tak sure ntah bace per";
private String smode6="tak start lagi pun";
private String seffort1="kelam kabut carik buku n nota2";
private String seffort2="dah nak muntah dah";
private String seffort3="usaha insyaAllah..kene tengok2 sket je lagi";
private String seffort4="\"aku ni nak exam ker?\"";
private int ichoice1;
private int ichoice2;
private int iquantity1;
private int iquantity2;
private double dsum1;
private double dsum2;
private double dsum3;
public FinalExam()
{
displayIntro();
Scanner input = new Scanner(System.in);
ichoice1= input.nextInt();
switch(ichoice1){
case 1: System.out.println("Owh anda ni study " + smode1);
break;
case 2: System.out.println("Owh,,anda ni study " + smode2);
break;
case 3 : System.out.println("Owh,,anda ni study " + smode3);
break;
case 4 : System.out.println("Owh,,anda ni study " + smode4);
break;
case 5 : System.out.println("Owh,,anda ni study " + smode5);
break;
case 6 : System.out.println("Owh,,anda ni study " + smode6);
break;
}
displayEffort();
ichoice2=input.nextInt();
switch(ichoice2)
{
case 1 : System.out.println("Kirenye skarang anda ni jadik " + smode1);
break;
case 2 : System.out.println("Kirenye skarang anda ni " + smode2);
break;
case 3 : System.out.println("Kirenye skarang ni anda nyer " + smode3);
break;
case 4 : System.out.println("kirenyenye skarang ni anda tertanye2la yang " + smode4);
break;
}
System.out.println("brape peratus rase2nyela anda dah study ye?");
iquantity1 = input.nextInt();
System.out.println("taqarrub ilallah??");
iquantity2 = input.nextInt();
dsum1 = (iquantity1/40*100);
dsum2 = (iquantity2/60*100);
dsum3 = (dsum1 + dsum2)/2;
System.out.println("mengikut jangkaan saya,peratusan study anda sekarang ialah " + dsum3+"%");
System.out.println("ditambah pula dengan persediaan awal anda yang kondisinye begitu");
System.out.println("dan skarang pula begini");
System.out.println("so,fikir2kan dan selamat muhasabah^^");
System.out.println("gudlak exam!sori kalau der trase ati\n moge kejayaan milik kite bersama^^");
}
public void displayIntro()
{
System.out.println("******hi sume kawan2!!********");
System.out.println("^^Welcome to exam world!^^");
System.out.println("nak tanye sket bleyh x??\n 2 minggu sebelum exam caner ye persediaan korang?");
System.out.println("1.gile-gile");
System.out.println("2.study sampai sakit tengkuk");
System.out.println("3.biase2 je");
System.out.println("4.sampai takder mood nak study");
System.out.println("5.tak sure ntah bace per");
System.out.println("6.tak start lagi pun");
return;
}
public void displayEffort()
{
System.out.println("dah brape hari lagi nak exam ni cner??");
System.out.println("1.kelam kabut carik buku n nota2");
System.out.println("2.dah nak muntah dah");
System.out.println("3.usaha insyaAllah..kene tengok2 sket je lagi");
System.out.println("4.aku ni nak exam ker?");
return;
}
}
study memolek ye...
jangan menyesal di kemudian hari=p
No comments:
Post a Comment