10 Replies - 1573 Views - Last Post: 23 October 2011 - 01:15 PM Rate Topic: -----

#1 azuma kazuma  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 22-October 11

How can i convert this C++ code to java

Posted 23 October 2011 - 12:09 AM

can anyone give me an idea how could i start to convert this c++ code to java?
#include<iostream.h>/*untuk pengguna cin dan cout*/
#include<string.h>/*terima data berbentuk string*/
#include<stdio.h>/*terima input dan output*/
#include<stdlib.h>/*funsi utk title cmd*/
#include<conio.h>/*fungsi untuk clrscr*/
#include<time.h>/*penetapan masa*/
#include<iomanip.h>/*tentukan tempat perpuluhan*/

const saiz=50;

struct pengguna
{
	char nama[50];
	char no_matrik[saiz];
	char noic[saiz];
	char guna_nilai;
	int pilihan,menu,menupro,markah;
	int bil_kursus;
	int kira_hpnm;

}menupengguna;


struct kirahpnm
{
	
	double nilai_mata_eng,nilai_mata_algo,nilai_mata_java,nilai_mata_sad,nilai_mata_db,nilai_mata_avd;
	double nilai_kredit_eng,nilai_kredit_algo,nilai_kredit_java,nilai_kredit_sad,nilai_kredit_db,nilai_kredit_avd;
	double pnm1,pnm2,pnm3;
	double jum_sem5,sem5;
	double totalhpnm;
	char panduan;
}hpnm;

class Panduan
{
public:
	void PNilai();
	void PNilaiEng();
};

void Panduan::PNilai()
{

gmarkah:
									cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
									cout<<"\t|                            PANDUAN NILAI MATA                                |"<<endl;
									cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;

									cout<<"\t\tSila masukkan markah subjek anda:";
									cin>>menupengguna.markah;

									if(menupengguna.markah>100||menupengguna.markah<0)
									{
										system("cls");
										cout<<"\n\t\t\7Harap Maaf!Anda hanya dibenarkan masuk nilai daripada 0 - 100"<<endl<<endl;
										goto gmarkah;
									}

									else if(menupengguna.markah>=80 && menupengguna.markah<=100)
									{
										cout<<"\t\tGred: A"<<endl;
										cout<<"\t\tNilai Mata: 4.00"<<endl;
									}
									else if(menupengguna.markah>=75 && menupengguna.markah<=79)
									{
										cout<<"\t\tGred: A-"<<endl;
										cout<<"\t\tNilai Mata: 3.67"<<endl;
									}
									else if(menupengguna.markah>=70 && menupengguna.markah<=74)
									{
										cout<<"\t\tGred: B+"<<endl;
										cout<<"\t\tNilai Mata: 3.33"<<endl;
									}
									else if(menupengguna.markah>=65 && menupengguna.markah<=69)
									{
										cout<<"\t\tGred: B"<<endl;
										cout<<"\t\tNilai Mata: 3.00"<<endl;
									}
									else if(menupengguna.markah>=60 && menupengguna.markah<=64)
									{
										cout<<"\t\tGred: B-"<<endl;
										cout<<"\t\tNilai Mata: 2.67"<<endl;
									}
									else if(menupengguna.markah>=55 && menupengguna.markah<=59)
									{
										cout<<"\t\tGred: C+"<<endl;
										cout<<"\t\tNilai Mata: 2.33"<<endl;
									}
									else if(menupengguna.markah>=50 && menupengguna.markah<=54)
									{
										cout<<"\t\tGred: C"<<endl;
										cout<<"\t\tNilai Mata: 2.00"<<endl;
									}
									else if(menupengguna.markah>=47 && menupengguna.markah<=49)
									{
										cout<<"\t\tGred: C-"<<endl;
										cout<<"\t\tNilai Mata: 1.67"<<endl;
									}
									else if(menupengguna.markah>=44 && menupengguna.markah<=46)
									{
										cout<<"\t\tGred: D+"<<endl;
										cout<<"\t\tNilai Mata: 1.33"<<endl;
									}
									else if(menupengguna.markah>=40 && menupengguna.markah<=43)
									{
										cout<<"\t\tGred: D"<<endl;
										cout<<"\t\tNilai Mata: 1.00"<<endl;
									}
									else if(menupengguna.markah>=30 && menupengguna.markah<=39)
									{
										cout<<"\t\tGred: E"<<endl;
										cout<<"\t\tNilai Mata: 0.67"<<endl;
									}
									else if(menupengguna.markah>=20 && menupengguna.markah<=29)
									{
										cout<<"\t\tGred: E-"<<endl;
										cout<<"\t\tNilai Mata: 0.33"<<endl;
									}
									else
									{
										cout<<"\t\tGred: F"<<endl;
										cout<<"\t\tNilai Mata: 0.00"<<endl;
									}

									cout<<"\n\t\t\tTEKAN ENTER...\n"<<endl;
									getch();


}

void Panduan::PNilaiEng()
{
gmarkah1:
									cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
									cout<<"\t|                            NILAI MATA GUIDE                                  |"<<endl;
									cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;

									cout<<"\t\tPlease Insert Your Subject Mark:";
									cin>>menupengguna.markah;

									if(menupengguna.markah>100||menupengguna.markah<0)
									{
										system("cls");
										cout<<"\n\t\t\7Hope Apology!You only allowed in value of 0 - 100 "<<endl<<endl;
										goto gmarkah1;
									}

									else if(menupengguna.markah>=80 && menupengguna.markah<=100)
									{
										cout<<"\t\tGred: A"<<endl;
										cout<<"\t\tNilai Mata: 4.00"<<endl;
									}
									else if(menupengguna.markah>=75 && menupengguna.markah<=79)
									{
										cout<<"\t\tGred: A-"<<endl;
										cout<<"\t\tNilai Mata: 3.67"<<endl;
									}
									else if(menupengguna.markah>=70 && menupengguna.markah<=74)
									{
										cout<<"\t\tGred: B+"<<endl;
										cout<<"\t\tNilai Mata: 3.33"<<endl;
									}
									else if(menupengguna.markah>=65 && menupengguna.markah<=69)
									{
										cout<<"\t\tGred: B"<<endl;
										cout<<"\t\tNilai Mata: 3.00"<<endl;
									}
									else if(menupengguna.markah>=60 && menupengguna.markah<=64)
									{
										cout<<"\t\tGred: B-"<<endl;
										cout<<"\t\tNilai Mata: 2.67"<<endl;
									}
									else if(menupengguna.markah>=55 && menupengguna.markah<=59)
									{
										cout<<"\t\tGred: C+"<<endl;
										cout<<"\t\tNilai Mata: 2.33"<<endl;
									}
									else if(menupengguna.markah>=50 && menupengguna.markah<=54)
									{
										cout<<"\t\tGred: C"<<endl;
										cout<<"\t\tNilai Mata: 2.00"<<endl;
									}
									else if(menupengguna.markah>=47 && menupengguna.markah<=49)
									{
										cout<<"\t\tGred: C-"<<endl;
										cout<<"\t\tNilai Mata: 1.67"<<endl;
									}
									else if(menupengguna.markah>=44 && menupengguna.markah<=46)
									{
										cout<<"\t\tGred: D+"<<endl;
										cout<<"\t\tNilai Mata: 1.33"<<endl;
									}
									else if(menupengguna.markah>=40 && menupengguna.markah<=43)
									{
										cout<<"\t\tGred: D"<<endl;
										cout<<"\t\tNilai Mata: 1.00"<<endl;
									}
									else if(menupengguna.markah>=30 && menupengguna.markah<=39)
									{
										cout<<"\t\tGred: E"<<endl;
										cout<<"\t\tNilai Mata: 0.67"<<endl;
									}
									else if(menupengguna.markah>=20 && menupengguna.markah<=29)
									{
										cout<<"\t\tGred: E-"<<endl;
										cout<<"\t\tNilai Mata: 0.33"<<endl;
									}
									else
									{
										cout<<"\t\tGred: F"<<endl;
										cout<<"\t\tNilai Mata: 0.00"<<endl;
									}

									cout<<"\n\t\t\tPRESS ENTER...\n"<<endl;
									getch();


}
void main()
{

				int count=0,i=0;
				Panduan pan;
				system("title MINI PROJEK - SISTEM KEPUTUSAN PENILAIAN AKHIR SEMESTER PELAJAR PSMZA 2009");

				cout<<"\t                                     QQ                                     "<<endl;
				cout<<"\t                                   QQQQ,                                    "<<endl;
				cout<<"\t                                 ,QJLQQQ.                                   "<<endl;
				cout<<"\t                                .Q .QS,UQ.                                  "<<endl;
				cout<<"\t                               .QQ JQL ,QQ:                                 "<<endl;
				cout<<"\t                              :QQQS 1QQQQQQ7                                "<<endl;
				cout<<"\t                             .QQQQQQhRQQRQQQ:                               "<<endl;
				cout<<"\t                            rhj7rrr7L7rrrr7JPr                              "<<endl;
				cout<<"\t                      ,,,, 7QZpPPXXXXXXXXXP9ZQ7 ,,,                         "<<endl;
				cout<<"\t                     .::::fQQQQQQQQQQQQQQQQQQQQF.:::.                       "<<endl;
				cout<<"\t                   ,.:::.XQQRRRRRRRRRRRRRRRRRRQQ9..::.,                     "<<endl;
				cout<<"\t                   ,..  2RPh112fffttttt2ffff11hSRh  ..,                     "<<endl;
				cout<<"\t                       SMPFf2Fh1tf12fF1tFFtf1Fh1FRP                         "<<endl;
				cout<<"\t                      QQQQQQQQQQQQQQQQQQQQQQQQQQQQQR                        "<<endl;
				cout<<"\t                    ,.  .  X    :J  .  i  7:   r:                           "<<endl;
				cout<<"\t                    Qi ,9  .  0:JL  M  F: ,QP  Y  Q, :.                     "<<endl;
				cout<<"\t                   QQ. .Q  Qp  .Zh  Q  Zr :Q  LQU..  LQ                     "<<endl;
				cout<<"\t                 ,QQQ. .E  7.r0  .  Q  9i :r  QQ  Q, .QQ                    "<<endl;
				cout<<"\t                .QQQQ.  .  D    :7  D  S: ,    i  ,  .QQQ,                  "<<endl;
				cout<<"\t               cQQQQQ: ,QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQr                 "<<endl;
				cout<<"\t              :QQDbEQ.  QQRDMQQQRRRRRRQMRRRRQQQRRQQRQMbbZQQ.				   "<<endl;
flag1:
				cout<<"\t|------------------------------------------------------------------------------|"<<endl;
				cout<<"\t|            Sila Pilih Bahasa Anda / Please Select Your Language              |"<<endl;
				cout<<"\t|------------------------------------------------------------------------------|"<<endl;
				cout<<"\t|[1] - Bahasa Melayu							       |"<<endl;
				cout<<"\t|[2] - Bahasa Inggeris							       |"<<endl;
				cout<<"\t|[3] - Tamat                                                                   |"<<endl;
				cout<<"\t|------------------------------------------------------------------------------|"<<endl;
				cout<<"\t|                                                                              |"<<endl;
				cout<<"\t|------------------------------------------------------------------------------|"<<endl;
				cout<<"\n\tMasukkan pilihan anda :";
				cin>>menupengguna.pilihan;
  
				switch (menupengguna.pilihan)
				{
				case 1:
					{
						system("cls");
menupro:
					//aturcara dalam BM
					cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
					cout<<"\t|                            MENU PENGGUNA                                     |"<<endl;
					cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
					cout<<"\t|[1] - Manual Pengguna							       |"<<endl;
					cout<<"\t|[2] - Masuk Ke Dalam Program						       |"<<endl;
					cout<<"\t|[3] - Tamat                                                                   |"<<endl;
					cout<<"\n\tMasukkan pilihan anda :";
					cin>>menupengguna.menu;
					system("cls");

					switch(menupengguna.menu)
					{
					case 1:
						{
flagmanual:
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\t|                            MANUAL PENGGUNA                                   |"<<endl;
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						//manual pengguna - menerangkan tentang cara pengguna aplikasi ini
						cout<<"\tPENGENALAN"<<endl;
						cout<<"\tPada menu permulaan, pengguna diminta untuk memilih bahasa yang dikehendaki."<<endl;
						cout<<"\tSekiranya pengguna memilih Bahasa Melayu, pengguna akan memasukki Menu Pengguna"<<endl;
						cout<<"\tdalam bahasa melayu dan jika pengguna memilih Bahasa Inggeris, pengguna akan"<<endl;
						cout<<"\tmemasukki User Menu dalam bahasa inggeris."<<endl;

						cout<<"\n\t\t\tTEKAN ENTER...\n"<<endl;
						getch();
						system("cls");
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\t|                                MENU PENGGUNA                                 |"<<endl;
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\tDalam Menu ini, terdapat tiga pilihan yang boleh digunakan oleh pengguna."<<endl;
						cout<<"\tJika pengguna memilih menu pengguna, pengguna akan didedahkan kepada cara - cara"<<endl;
						cout<<"\tuntuk menggunakan program ini.Jika pengguna memilih untuk Masuk Ke Dalam Program,"<<endl;
						cout<<"\tpengguna akan diberi pilihan untuk menggunakan Panduan Nilai Mata dan Menu Pengiraan "<<endl;
						cout<<"\tHPNM Semester 5.Dalam menu ini juga, disediakan menu keluar untuk memudahkan pengguna"<<endl;
						cout<<"\tmenamatkan program."<<endl;

						cout<<"\n\t\t\tTEKAN ENTER...\n"<<endl;
						getch();
						system("cls");

						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\t|                                LOGIN USER                                    |"<<endl;
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\tLogin User ini akan meminta pengguna untuk memasukkan nama penuh, number matrik"<<endl;
						cout<<"\tdan number kad pengenalan mereka untuk membolehkan mereka memasukki Menu Program"<<endl;
						cout<<"\tDisini telah ditingkatkan keselamatannya, dimana pengguna perlu memasukkan nombor"<<endl;
						cout<<"\tpendaftaran mereka yang betul dan nombor kat pengenalan mereka. Sekiranya masukkan"<<endl;
						cout<<"\tmereka tidak betul sebanyak tiga kali, pengguna akan dibawa keluar daripada"<<endl;
						cout<<"\taturcara/program ini secara automatik.Sekiranya butiran maklumat lengkap, "<<endl;
						cout<<"\tpengguna akan dibawa ke Menu Program."<<endl;
						cout<<"\n\t\t\tTEKAN ENTER...\n"<<endl;
						getch();
						system("cls");

						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\t|                              MENU PROGRAM                                    |"<<endl;
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\tDalam menu ini, pengguna dapat guna Panduan Nilai Mata dimana pengguna dapat"<<endl;
						cout<<"\tmemasukkan markah ujian yang diperolehi mereka untuk mendapatkan Nilai Mata yang"<<endl;
						cout<<"\tperlu mereka masukkan semasa untuk mengira HPNM mereka nanti. Panduan Nilai Mata"<<endl;
						cout<<"\tini juga akan memaparkan gred bagi setiap kemasukkan markah mereka. Manakala menu"<<endl;
						cout<<"\tKira HPNM pula akan mengira markah pengguna semasa Semester 5 dan sebelumnya."<<endl;
						cout<<"\tMenu Keluar akan membawa pengguna ke menu sebelumnya."<<endl;

						cout<<"\n\t\t\tTEKAN ENTER...\n"<<endl;
						getch();
						system("cls");


						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\t|                            PANDUAN NILAI MATA                                |"<<endl;
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\tMenu ini akan membenarkan pengguna untuk memasukkan nilai markah yang mereka"<<endl;
						cout<<"\tperolehi dan menu ini akan memberi nilai mata kepada pengguna beserta gred bagi"<<endl;
						cout<<"\tnilai mata yang mereka perolehi. Menu ini tidak akan menerima masukkan nilai"<<endl;
						cout<<"\tmarkah yang melebihi 100 dan tidak akan menerima masukkan yang kurang daripada 0."<<endl;
						cout<<"\n\t\t\tTEKAN ENTER...\n"<<endl;
						getch();
						system("cls");


						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\t|                            KIRA PNM SEM 5                                    |"<<endl;
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\tMenu ini akan meminta pengguna memasukkan nilai mata yang diperolehi dalam subjek"<<endl;
						cout<<"\tyang diambil.Selepas pengguna memasukkan semua nilai mata yang telah diambil,"<<endl;
						cout<<"\tpengguna akan dibawa ke pada Menu Pengiraan HPNM.Di mana menu yang terdapat"<<endl;
						cout<<"\tdidalamnya,adalah Kira PNM 5,Kemaskini Data, Cetak Slip dan Keluar."<<endl;
						cout<<"\tMenu Kira PNM 5 akan mengira masukkan nilai mata yang baru dimasukkan tadi."<<endl;
						cout<<"\tManakala, menu kemaskini data akan membenarkan pengguna untuk mengubah nilai mata"<<endl;
						cout<<"\tyang dimasukkan tadi. Menu Cetak Slip akan mencetak keseluruhan keputusan peperiksaan"<<endl;
						cout<<"\takhir semester 5. Dalam Menu ini, pengguna perlu mengira markah sebelum dapat"<<endl;
						cout<<"\tmengemaskini data dan membuat cetakkan slip.Sekiranya pengguna ingin membuat"<<endl;
						cout<<"\tcetakan slip atau kemaskini data, satu amaran akan keluar."<<endl;

						cout<<"\n\t\t\tTEKAN ENTER...\n"<<endl;
						getch();

flagmanualsalah:
						cout<<"\t\tAnda ingin meneruskan mengunakan Manual Pengguna (Y/N)?: ";cin>>menupengguna.guna_nilai;
						if(menupengguna.guna_nilai=='Y'||menupengguna.guna_nilai=='y')
						{
							system("cls");
							goto flagmanual;
						}
						else if(menupengguna.guna_nilai=='N'||menupengguna.guna_nilai=='n')
						{
							system("cls");
							goto menupro;
						}
						else
						{
							cout<<endl<<endl;
							cout<<"\t\t\7Masukkan Anda Salah"<<endl<<endl;
							goto flagmanualsalah;
						}

						break;
						}

					case 2:
						{
							long masa_t=0, now;
							now = time(NULL);

							cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
							cout<<"\t|\t\t\4Tarikh dan Masa semasa: "<<ctime(&now);
							cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
							cout<<"\t|                                 LOGIN USER                                   |"<<endl;
							cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
							cout<<"\tSila Masukkan Nama Penuh Anda :";
							cin.getline(menupengguna.nama,50);
							cin.getline(menupengguna.nama,50);
							
							
flagnomatrik:
							count++;
							if(count<=3)
							{
								cout<<"\tSila Masukkan No Matrik anda :";cin>>menupengguna.no_matrik;

								if(strlen(menupengguna.no_matrik)==11)
								{
									goto flagnoic;
								}
								else if(strlen(menupengguna.no_matrik)>11)
								{
									cout<<"\7\n\tSila semak No Matrik Anda!"<<endl;
									cout<<"\tPercubaan Yang Ke : "<<count<<endl<<endl;
									goto flagnomatrik;
								}
								else
								{
									cout<<"\7\n\tMasukkan Anda salah"<<endl;
									cout<<"\tPercubaan Yang Ke : "<<count<<endl<<endl;
									goto flagnomatrik;
								}
							}
							else
							{
								goto amaran;
							}

flagnoic:
							i++;
							if(i<=3)
							{
								cout<<"\tSila Masukkan No Kad Pengenalan anda :";cin>>menupengguna.noic;

								if(strlen(menupengguna.noic)==12)
								{
									cout<<"\n\t\t\tTEKAN ENTER...\n"<<endl;
									getch();
									system("cls");

								}
								else if(strlen(menupengguna.noic)>12)
								{
									cout<<"\7\n\tSila semak No Kad Pengenalan Anda!"<<endl;
									cout<<"\tPercubaan Yang Ke : "<<i<<endl<<endl;
									goto flagnoic;
								}
								else
								{
									cout<<"\7\n\tMasukkan Anda salah"<<endl;
									cout<<"\tPercubaan Yang Ke : "<<i<<endl<<endl;
									goto flagnoic;
								}
							}
							else
							{
								goto amaran;
							}



flagmenupro:
							
							cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
							cout<<"\t|                            MENU PROGRAM                                      |"<<endl;
							cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
							cout<<"\t|[1] - Panduan Nilai Mata						       |"<<endl;
							cout<<"\t|[2] - Kira HPNM							       |"<<endl;
							cout<<"\t|[3] - Keluar								       |"<<endl;
							cout<<"\n\tMasukkan pilihan anda :";
							cin>>menupengguna.menupro;
							system("cls");
							switch(menupengguna.menupro)
							{
							case 1:
								{
									//pengguna uji markah mereka untuk dapatkan gred dan nilai mata mereka
gmarkah:
									cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
									cout<<"\t|                            PANDUAN NILAI MATA                                |"<<endl;
									cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;

									cout<<"\t\tSila masukkan markah subjek anda:";
									cin>>menupengguna.markah;

									if(menupengguna.markah>100||menupengguna.markah<0)
									{
										system("cls");
										cout<<"\n\t\t\7Harap Maaf!Anda hanya dibenarkan masuk nilai daripada 0 - 100"<<endl<<endl;
										goto gmarkah;
									}

									else if(menupengguna.markah>=80 && menupengguna.markah<=100)
									{
										cout<<"\t\tGred: A"<<endl;
										cout<<"\t\tNilai Mata: 4.00"<<endl;
									}
									else if(menupengguna.markah>=75 && menupengguna.markah<=79)
									{
										cout<<"\t\tGred: A-"<<endl;
										cout<<"\t\tNilai Mata: 3.67"<<endl;
									}
									else if(menupengguna.markah>=70 && menupengguna.markah<=74)
									{
										cout<<"\t\tGred: B+"<<endl;
										cout<<"\t\tNilai Mata: 3.33"<<endl;
									}
									else if(menupengguna.markah>=65 && menupengguna.markah<=69)
									{
										cout<<"\t\tGred: B"<<endl;
										cout<<"\t\tNilai Mata: 3.00"<<endl;
									}
									else if(menupengguna.markah>=60 && menupengguna.markah<=64)
									{
										cout<<"\t\tGred: B-"<<endl;
										cout<<"\t\tNilai Mata: 2.67"<<endl;
									}
									else if(menupengguna.markah>=55 && menupengguna.markah<=59)
									{
										cout<<"\t\tGred: C+"<<endl;
										cout<<"\t\tNilai Mata: 2.33"<<endl;
									}
									else if(menupengguna.markah>=50 && menupengguna.markah<=54)
									{
										cout<<"\t\tGred: C"<<endl;
										cout<<"\t\tNilai Mata: 2.00"<<endl;
									}
									else if(menupengguna.markah>=47 && menupengguna.markah<=49)
									{
										cout<<"\t\tGred: C-"<<endl;
										cout<<"\t\tNilai Mata: 1.67"<<endl;
									}
									else if(menupengguna.markah>=44 && menupengguna.markah<=46)
									{
										cout<<"\t\tGred: D+"<<endl;
										cout<<"\t\tNilai Mata: 1.33"<<endl;
									}
									else if(menupengguna.markah>=40 && menupengguna.markah<=43)
									{
										cout<<"\t\tGred: D"<<endl;
										cout<<"\t\tNilai Mata: 1.00"<<endl;
									}
									else if(menupengguna.markah>=30 && menupengguna.markah<=39)
									{
										cout<<"\t\tGred: E"<<endl;
										cout<<"\t\tNilai Mata: 0.67"<<endl;
									}
									else if(menupengguna.markah>=20 && menupengguna.markah<=29)
									{
										cout<<"\t\tGred: E-"<<endl;
										cout<<"\t\tNilai Mata: 0.33"<<endl;
									}
									else
									{
										cout<<"\t\tGred: F"<<endl;
										cout<<"\t\tNilai Mata: 0.00"<<endl;
									}

									cout<<"\n\t\t\tTEKAN ENTER...\n"<<endl;
									getch();

flagsalah0:
									cout<<"\t\tAnda ingin meneruskan mengunakan Panduan Nilai Mata (Y/N)?: ";cin>>menupengguna.guna_nilai;
									if(menupengguna.guna_nilai=='Y'||menupengguna.guna_nilai=='y')
									{
										system("cls");
										goto gmarkah;
									}
									else if(menupengguna.guna_nilai=='N'||menupengguna.guna_nilai=='n')
									{
										system("cls");
										goto flagmenupro;
									}
									else
									{
										cout<<endl<<endl;
										cout<<"\t\t\7Masukkan Anda Salah"<<endl<<endl;
										goto flagsalah0;
									}

									break;
								}

							case 2:
								{
									
									//kira hpnm bagi sem 5 dan sem sebelumnya
									cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
									cout<<"\t|                            KIRA PNM SEM 5                                    |"<<endl;
									cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
									

									cout<<"\tNama Pelajar: "<<menupengguna.nama<<endl;
									cout<<"\tNo Matrik Pelajar: "<<menupengguna.no_matrik<<endl<<endl;
flagkemaskini:

									cout<<"\tSila Masukkan Nilai Mata Yang Diperolehi"<<endl;
									cout<<"\tBagi subjek berikut:"<<endl<<endl;

									//kira bi
flagnilaimata_eng:
									cout<<"\tENGLISH FOR TECHNOLOGY PURPOSE 4: "<<"\t";
									cin>>hpnm.nilai_mata_eng;

								/*	if(hpnm.nilai_mata_eng>=4.01)
									{
										cout<<endl;
										cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
										cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
										cout<<endl;
										goto flagnilaimata_eng;
									}*/

									if((hpnm.nilai_mata_eng==4.00)||(hpnm.nilai_mata_eng==3.67)||(hpnm.nilai_mata_eng==3.33)||(hpnm.nilai_mata_eng==3.00)||(hpnm.nilai_mata_eng==2.67)||(hpnm.nilai_mata_eng==2.33)||(hpnm.nilai_mata_eng==2.00)||(hpnm.nilai_mata_eng==1.67)||(hpnm.nilai_mata_eng==1.33)||(hpnm.nilai_mata_eng==1.00)||(hpnm.nilai_mata_eng==0.67)||(hpnm.nilai_mata_eng==0.33)||(hpnm.nilai_mata_eng==0.00))
									{
										hpnm.nilai_kredit_eng=(1.50)*(hpnm.nilai_mata_eng);

									}
									else
									{
										cout<<endl;
										cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
										cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
error_eng:
										cout<<"\tAnda ingin menggunakan Panduan Nilai Mata sebagai rujukan?(Y/N): ";cin>>hpnm.panduan;
										if(hpnm.panduan=='Y'||hpnm.panduan=='y')
										{
											cout<<endl;
											pan.PNilai();
											goto flagnilaimata_eng;
										}
										else if(hpnm.panduan=='N'||hpnm.panduan=='n')
										{
											goto flagnilaimata_eng;
											cout<<endl;
										}
										else
										{
											cout<<endl<<endl;
											cout<<"\t\t\7Masukkan Anda Salah"<<endl<<endl;
											goto error_eng;
										}
									}

									//kira algo
flagnilaimata_algo:
									cout<<"\tALGORITMA & STRUKTUR DATA: "<<"\t\t";
									cin>>hpnm.nilai_mata_algo;

									/*if(hpnm.nilai_mata_algo>=4.01)
									{
										cout<<endl;
										cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
										cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
										cout<<endl;
										goto flagnilaimata_algo;
									}*/

									if((hpnm.nilai_mata_algo==4.00)||(hpnm.nilai_mata_algo==3.67)||(hpnm.nilai_mata_algo==3.33)||(hpnm.nilai_mata_algo==3.00)||(hpnm.nilai_mata_algo==2.67)||(hpnm.nilai_mata_algo==2.33)||(hpnm.nilai_mata_algo==2.00)||(hpnm.nilai_mata_algo==1.67)||(hpnm.nilai_mata_algo==1.33)||(hpnm.nilai_mata_algo==1.00)||(hpnm.nilai_mata_algo==0.67)||(hpnm.nilai_mata_algo==0.33)||(hpnm.nilai_mata_algo==0.00))
									{
										hpnm.nilai_kredit_algo=(3.00)*(hpnm.nilai_mata_algo);

									}
									else
									{
										cout<<endl;
										cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
										cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
error_algo:
										cout<<"\tAnda ingin menggunakan Panduan Nilai Mata sebagai rujukan?(Y/N): ";cin>>hpnm.panduan;
										if(hpnm.panduan=='Y'||hpnm.panduan=='y')
										{
											cout<<endl;
											pan.PNilai();
											goto flagnilaimata_algo;

										}
										else if(hpnm.panduan=='N'||hpnm.panduan=='n')
										{
											goto flagnilaimata_algo;
											cout<<endl;
										}
										else
										{
											cout<<endl<<endl;
											cout<<"\t\t\7Masukkan Anda Salah"<<endl<<endl;
											goto error_algo;
										}	
									}
									//kira java

flagnilaimata_java:
									cout<<"\tPENGATURCARAAN JAVA: "<<"\t\t\t";
									cin>>hpnm.nilai_mata_java;

									/*if(hpnm.nilai_mata_java>=4.01)
									{
										cout<<endl;
										cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
										cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
										cout<<endl;
										goto flagnilaimata_java;
									}*/

									if((hpnm.nilai_mata_java==4.00)||(hpnm.nilai_mata_java==3.67)||(hpnm.nilai_mata_java==3.33)||(hpnm.nilai_mata_java==3.00)||(hpnm.nilai_mata_java==2.67)||(hpnm.nilai_mata_java==2.33)||(hpnm.nilai_mata_java==2.00)||(hpnm.nilai_mata_java==1.67)||(hpnm.nilai_mata_java==1.33)||(hpnm.nilai_mata_java==1.00)||(hpnm.nilai_mata_java==0.67)||(hpnm.nilai_mata_java==0.33)||(hpnm.nilai_mata_java==0.00))
									{
										hpnm.nilai_kredit_java=(4.00)*(hpnm.nilai_mata_java);

									}
									else
									{
										cout<<endl;
										cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
										cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
error_java:
										cout<<"\tAnda ingin menggunakan Panduan Nilai Mata sebagai rujukan?(Y/N): ";cin>>hpnm.panduan;
										if(hpnm.panduan=='Y'||hpnm.panduan=='y')
										{
											cout<<endl;
											pan.PNilai();
											goto flagnilaimata_java;

										}
										else if(hpnm.panduan=='N'||hpnm.panduan=='n')
										{
											goto flagnilaimata_java;
											cout<<endl;
										}
										else
										{
											cout<<endl<<endl;
											cout<<"\t\t\7Masukkan Anda Salah"<<endl<<endl;
											goto error_java;
										}	
									}

									//kira sad
flagnilaimata_sad:
									cout<<"\tSISTEM ANALISIS & REKABENTUK: "<<"\t\t";
									cin>>hpnm.nilai_mata_sad;

									/*if(hpnm.nilai_mata_sad>=4.01)
									{
										cout<<endl;
										cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
										cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
										cout<<endl;
										goto flagnilaimata_sad;
									}*/

									if((hpnm.nilai_mata_sad==4.00)||(hpnm.nilai_mata_sad==3.67)||(hpnm.nilai_mata_sad==3.33)||(hpnm.nilai_mata_sad==3.00)||(hpnm.nilai_mata_sad==2.67)||(hpnm.nilai_mata_sad==2.33)||(hpnm.nilai_mata_sad==2.00)||(hpnm.nilai_mata_sad==1.67)||(hpnm.nilai_mata_sad==1.33)||(hpnm.nilai_mata_sad==1.00)||(hpnm.nilai_mata_sad==0.67)||(hpnm.nilai_mata_sad==0.33)||(hpnm.nilai_mata_sad==0.00))
									{
										hpnm.nilai_kredit_sad=(2.00)*(hpnm.nilai_mata_sad);

									}
									else
									{
										cout<<endl;
										cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
										cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
error_sad:
										cout<<"\tAnda ingin menggunakan Panduan Nilai Mata sebagai rujukan?(Y/N): ";cin>>hpnm.panduan;
										if(hpnm.panduan=='Y'||hpnm.panduan=='y')
										{
											cout<<endl;
											pan.PNilai();
											goto flagnilaimata_sad;

										}
										else if(hpnm.panduan=='N'||hpnm.panduan=='n')
										{
											goto flagnilaimata_sad;
											cout<<endl;
										}
										else
										{
											cout<<endl<<endl;
											cout<<"\t\t\7Masukkan Anda Salah"<<endl<<endl;
											goto error_sad;
										}	
									}

									//kira db

flagnilaimata_db:
									cout<<"\tPANGKALAN DATA: "<<"\t\t\t";
									cin>>hpnm.nilai_mata_db;

									/*if(hpnm.nilai_mata_db>=4.01)
									{
										cout<<endl;
										cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
										cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
										cout<<endl;
										goto flagnilaimata_db;
									}*/

									if((hpnm.nilai_mata_db==4.00)||(hpnm.nilai_mata_db==3.67)||(hpnm.nilai_mata_db==3.33)||(hpnm.nilai_mata_db==3.00)||(hpnm.nilai_mata_db==2.67)||(hpnm.nilai_mata_db==2.33)||(hpnm.nilai_mata_db==2.00)||(hpnm.nilai_mata_db==1.67)||(hpnm.nilai_mata_db==1.33)||(hpnm.nilai_mata_db==1.00)||(hpnm.nilai_mata_db==0.67)||(hpnm.nilai_mata_db==0.33)||(hpnm.nilai_mata_db==0.00))
									{
										hpnm.nilai_kredit_db=(3.00)*(hpnm.nilai_mata_db);

									}
									else
									{
										cout<<endl;
										cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
										cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
error_db:
										cout<<"\tAnda ingin menggunakan Panduan Nilai Mata sebagai rujukan?(Y/N): ";cin>>hpnm.panduan;
										if(hpnm.panduan=='Y'||hpnm.panduan=='y')
										{
											cout<<endl;
											pan.PNilai();
											goto flagnilaimata_db;

										}
										else if(hpnm.panduan=='N'||hpnm.panduan=='n')
										{
											goto flagnilaimata_db;
											cout<<endl;
										}
										else
										{
											cout<<endl<<endl;
											cout<<"\t\t\7Masukkan Anda Salah"<<endl<<endl;
											goto error_db;
										}		
									}


									//kira avd
flagnilaimata_avd:
									cout<<"\tAUDIO VIDEO DIGITAL: "<<"\t\t\t";
									cin>>hpnm.nilai_mata_avd;

									/*if(hpnm.nilai_mata_avd>=4.01)
									{
										cout<<endl;
										cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
										cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
										cout<<endl;
										goto flagnilaimata_avd;
									}*/

									if((hpnm.nilai_mata_avd==4.00)||(hpnm.nilai_mata_avd==3.67)||(hpnm.nilai_mata_avd==3.33)||(hpnm.nilai_mata_avd==3.00)||(hpnm.nilai_mata_avd==2.67)||(hpnm.nilai_mata_avd==2.33)||(hpnm.nilai_mata_avd==2.00)||(hpnm.nilai_mata_avd==1.67)||(hpnm.nilai_mata_avd==1.33)||(hpnm.nilai_mata_avd==1.00)||(hpnm.nilai_mata_avd==0.67)||(hpnm.nilai_mata_avd==0.33)||(hpnm.nilai_mata_avd==0.00))
									{
										hpnm.nilai_kredit_avd=(2.00)*(hpnm.nilai_mata_avd);

									}
									else
									{
										cout<<endl;
										cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
										cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
error_avd:
										cout<<"\tAnda ingin menggunakan Panduan Nilai Mata sebagai rujukan?(Y/N): ";cin>>hpnm.panduan;
										if(hpnm.panduan=='Y'||hpnm.panduan=='y')
										{
											cout<<endl;
											pan.PNilai();
											goto flagnilaimata_avd;

										}
										else if(hpnm.panduan=='N'||hpnm.panduan=='n')
										{
											goto flagnilaimata_avd;
											cout<<endl;
										}
										else
										{
											cout<<endl<<endl;
											cout<<"\t\t\7Masukkan Anda Salah"<<endl<<endl;
											goto error_avd;
										}		
									}

									cout<<endl;
	
									cout<<"\n\t\t\tTEKAN ENTER..."<<endl;
									getch();
									system("cls");

										cout<<endl<<endl;

flagmenukirahpnm:



										cout<<"\t\t+++++++++++++++++++++++++MENU+++++++++++++++++++++++++"<<endl;
										cout<<"\t\t|1.Kira PNM 5			   2.Kemaskini Data  |"<<endl;
										cout<<"\t\t|3.Cetak Slip			   4.Keluar	     |"<<endl;
										cout<<"\t\t++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
										cout<<"\n\t\tMasukkan pilihan anda :";
										cin>>menupengguna.kira_hpnm;
									
										switch(menupengguna.kira_hpnm)
										{
										case 1:
											{

												//kira hpnm
											
												system("cls");
												cout<<endl;
												cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
												cout<<"\t|                            KIRA PNM SEM 5                                    |"<<endl;
												cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
												cout<<endl;
												cout<<"\t| KOD  ";
												cout<<"| NAMA KURSUS ";
												cout<<"\t\t";
												cout<<"\t | NILAI MATA |";
												cout<<"\t MATA KREDIT |"<<endl;
												cout<<"\t  A4003 "<<" ENGLISH FOR TECHNOLOGY PURPOSE 4 "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_eng<<"\t     "<<hpnm.nilai_kredit_eng<<endl;
												cout<<"\t  F4104 "<<" ALGORITMA & STRUKTUR DATA       "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_algo<<"\t     "<<hpnm.nilai_kredit_algo<<endl;
												cout<<"\t  F4105 "<<" PENGATURCARAAN JAVA             "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_java<<"\t     "<<hpnm.nilai_kredit_java<<endl;
												cout<<"\t  F4106 "<<" SISTEM ANALISIS & REKABENTUK    "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_sad<<"\t     "<<hpnm.nilai_kredit_sad<<endl;
												cout<<"\t  F4109 "<<" PANGKALAN DATA                  "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_db<<"\t     "<<hpnm.nilai_kredit_db<<endl;
												cout<<"\t  F4805 "<<" AUDIO VIDEO DIGITAL             "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_avd<<"\t     "<<hpnm.nilai_kredit_avd<<endl;
												cout<<endl;


												hpnm.sem5=hpnm.nilai_kredit_algo+hpnm.nilai_kredit_avd+hpnm.nilai_kredit_db+hpnm.nilai_kredit_eng+hpnm.nilai_kredit_java+hpnm.nilai_kredit_sad;

												hpnm.jum_sem5=(hpnm.sem5)/(1.50+4.00+3.00+3.00+2.00+2.00);


												cout<<"\t\tPNM Sem Ini: "<<setprecision(2)<<hpnm.jum_sem5;
												cout<<endl;

												cout<<"\n\t\t\tTEKAN ENTER...\n"<<endl;
												getch();

flagsalah1:
												cout<<"\t\tAnda ingin kembali kepada menu sebelumnya?!(Y/N)?: ";cin>>menupengguna.guna_nilai;
												if(menupengguna.guna_nilai=='Y'||menupengguna.guna_nilai=='y')
												{
													system("cls");
													goto flagmenukirahpnm;
												}
												else if(menupengguna.guna_nilai=='N'||menupengguna.guna_nilai=='n')
												{
													system("cls");
													goto flagmenupro;
												}
												else
												{
													cout<<endl<<endl;
													cout<<"\t\t\7Masukkan Anda Salah"<<endl<<endl;
													goto flagsalah1;
												}
									
												break;
											}
										case 2:
											{

												if(hpnm.sem5==0)
												{
													system("cls");
													cout<<endl;
													cout<<"\t\t|========================================================|"<<endl;
													cout<<"\t\t\7|Harap Maaf!. Sila Buat Kiraan PNM SEM 5 Terlebih Dahulu.|"<<endl;
													cout<<"\t\t|========================================================|"<<endl;
													cout<<endl;
													goto flagmenukirahpnm;
												}
												else
												{

												//kemaskini data yang dimasukkan
												system("cls");
												cout<<"\t\t\t----MAKLUMAT YANG TELAH DIMASUKKAN SEBELUM INI----"<<endl<<endl;												
												cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
												cout<<"\t|                            KIRA PNM SEM 5                                    |"<<endl;
												cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
												cout<<"\t| KOD  ";
												cout<<"| NAMA KURSUS ";
												cout<<"\t\t";
												cout<<"\t | NILAI MATA |"<<endl;
												cout<<"\t  A4003 "<<" ENGLISH FOR TECHNOLOGY PURPOSE 4 "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_eng<<endl;
												cout<<"\t  F4104 "<<" ALGORITMA & STRUKTUR DATA       "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_algo<<endl;
												cout<<"\t  F4105 "<<" PENGATURCARAAN JAVA             "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_java<<endl;
												cout<<"\t  F4106 "<<" SISTEM ANALISIS & REKABENTUK    "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_sad<<endl;
												cout<<"\t  F4109 "<<" PANGKALAN DATA                  "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_db<<endl;
												cout<<"\t  F4805 "<<" AUDIO VIDEO DIGITAL             "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_avd<<endl;
												cout<<endl;
												goto flagkemaskini;
												}
												
												break;

											}
										case 3:
											{
												//cetak slip

												if(hpnm.sem5==0)
												{
													system("cls");
													cout<<endl;
													cout<<"\t\t|========================================================|"<<endl;
													cout<<"\t\t\7|Harap Maaf!. Sila Buat Kiraan PNM SEM 5 Terlebih Dahulu.|"<<endl;
													cout<<"\t\t|========================================================|"<<endl;
													cout<<endl;
													goto flagmenukirahpnm;
												}

												else
												{
												system("cls");
												cout<<endl;
												cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
												cout<<"\t|                            CETAK SLIP PEPERIKSAAN                            |"<<endl;
												cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
												cout<<endl;
flagpnm1:
												cout<<"\tSila Masukkan Purata Nilai Mata Sem 1: ";
												cin>>hpnm.pnm1;

												if(hpnm.pnm1>=4.01)
												{
													cout<<endl;
													cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
													//cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
													cout<<endl;
													goto flagpnm1;
												}

												if(hpnm.pnm1<0)
												{
													cout<<endl;
													cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
													//cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
													cout<<endl;
													goto flagpnm1;
												}


			

												cout<<endl;
flagpnm2:

												cout<<"\tSila Masukkan Purata Nilai Mata Sem 2: ";
												cin>>hpnm.pnm2;

												if(hpnm.pnm2>=4.01)
												{
													cout<<endl;
													cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
													//cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
													cout<<endl;
													goto flagpnm2;
												}
												
												if(hpnm.pnm2<0)
												{
													cout<<endl;
													cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
													//cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
													cout<<endl;
													goto flagpnm2;
												}

												cout<<endl;
flagpnm3:

												cout<<"\tSila Masukkan Purata Nilai Mata Sem 3: ";
												cin>>hpnm.pnm3;
												
												if(hpnm.pnm3>=4.01)
												{
													cout<<endl;
													cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
													//cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
													cout<<endl;
													goto flagpnm3;
												}

												if(hpnm.pnm3<=0)
												{
													cout<<endl;
													cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
													//cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
													cout<<endl;
													goto flagpnm3;
												}
												
												hpnm.totalhpnm=(hpnm.pnm1+hpnm.pnm2+hpnm.pnm3+hpnm.jum_sem5)/4;

												cout<<endl;

												cout<<"\n\t\tTEKAN ENTER UNTUK MEMAPARKAN SLIP KESELURUHAN. . . ."<<endl;
												getch();

												system("cls");
												
												cout.setf(ios::fixed,ios::floatfield);
												char tarikh[10];
												_strdate(tarikh);

												cout<<endl;
												cout<<"\t\t\t\t\t          *"<<endl;
												cout<<"\t\t\t\t\t         ***"<<endl;
												cout<<"\t\t\t\t\t        *****"<<endl;
												cout<<"\t\t\t\t\t       *******"<<endl;
												cout<<"\t\t\t\t\t        psmza  "<<endl;
												cout<<"\t\t\t============================================="<<endl;
												cout<<"\t\t\t\tSLIP MARKAH PELAJAR SEMESTER 5"<<endl;
												cout<<"\t\t\t\tDIPLOMA TEKNOLOGI MAKLUMAT"<<endl;
												cout<<"\t\t\t============================================="<<endl;
												cout<<endl<<endl;

												cout<<"Nama: "<<menupengguna.nama<<"\t\t\tKod Kursus: DIP"<<endl;
												cout<<"No Matrik: "<<menupengguna.no_matrik<<"\t\t\t\t\tSemester: 5"<<endl;
												cout<<"No K/P: "<<menupengguna.noic<<"\t\t\t\t\tTarikh: "<<tarikh<<endl;
												
												cout<<"==============================================================================================="<<endl;
												cout<<"| KOD  "<<"| NAMA KURSUS "<<"\t\t"<<"\t | JAM KREDIT "<<"\t | NILAI MATA |"<<"\t GRED |"<<"\t MATA KREDIT |"<<endl;
												cout<<"==============================================================================================="<<endl;
												cout<<"  A4003 "<<" ENGLISH FOR TECHNOLOGY PURPOSE 4 "<<"   1.50 "<<"\t    "<<setprecision(2)<<hpnm.nilai_mata_eng;

												if(hpnm.nilai_mata_eng==4.00)
												{
													cout<<"\t A";
												}
												else if(hpnm.nilai_mata_eng==3.67)
												{
													cout<<"\t A-";
												}
												else if(hpnm.nilai_mata_eng==3.33)
												{
													cout<<"\t B+";
												}
												else if(hpnm.nilai_mata_eng==3.00)
												{
													cout<<"\t B";
												}
												else if(hpnm.nilai_mata_eng==2.67)
												{
													cout<<"\t B-";
												}
												else if(hpnm.nilai_mata_eng==2.33)
												{
													cout<<"\t C+";
												}
												else if(hpnm.nilai_mata_eng==2.00)
												{
													cout<<"\t C";
												}
												else if(hpnm.nilai_mata_eng==1.67)
												{
													cout<<"\t C-";
												}
												else if(hpnm.nilai_mata_eng==1.33)
												{
													cout<<"\t D+";
												}
												else if(hpnm.nilai_mata_eng==1.00)
												{
													cout<<"\t D";
												}
												else if(hpnm.nilai_mata_eng==0.67)
												{
													cout<<"\t E";
												}
												else if(hpnm.nilai_mata_eng==0.33)
												{
													cout<<"\t E-";
												}
												else if(hpnm.nilai_mata_eng==0.00)
												{
													cout<<"\t F";
												}

												cout<<"\t     "<<hpnm.nilai_kredit_eng<<endl;

												cout<<"  F4104 "<<" ALGORITMA & STRUKTUR DATA       "<<"    3.00 "<<"\t    "<<setprecision(2)<<hpnm.nilai_mata_algo;
												
												if(hpnm.nilai_mata_algo==4.00)
												{
													cout<<"\t A";
												}
												else if(hpnm.nilai_mata_algo==3.67)
												{
													cout<<"\t A-";
												}
												else if(hpnm.nilai_mata_algo==3.33)
												{
													cout<<"\t B+";
												}
												else if(hpnm.nilai_mata_algo==3.00)
												{
													cout<<"\t B";
												}
												else if(hpnm.nilai_mata_algo==2.67)
												{
													cout<<"\t B-";
												}
												else if(hpnm.nilai_mata_algo==2.33)
												{
													cout<<"\t C+";
												}
												else if(hpnm.nilai_mata_algo==2.00)
												{
													cout<<"\t C";
												}
												else if(hpnm.nilai_mata_algo==1.67)
												{
													cout<<"\t C-";
												}
												else if(hpnm.nilai_mata_algo==1.33)
												{
													cout<<"\t D+";
												}
												else if(hpnm.nilai_mata_algo==1.00)
												{
													cout<<"\t D";
												}
												else if(hpnm.nilai_mata_algo==0.67)
												{
													cout<<"\t E";
												}
												else if(hpnm.nilai_mata_algo==0.33)
												{
													cout<<"\t E-";
												}
												else if(hpnm.nilai_mata_algo==0.00)
												{
													cout<<"\t F";
												}


												cout<<"\t     "<<hpnm.nilai_kredit_algo<<endl;

												cout<<"  F4105 "<<" PENGATURCARAAN JAVA             "<<"    4.00 "<<"\t    "<<setprecision(2)<<hpnm.nilai_mata_java;

												if(hpnm.nilai_mata_java==4.00)
												{
													cout<<"\t A";
												}
												else if(hpnm.nilai_mata_java==3.67)
												{
													cout<<"\t A-";
												}
												else if(hpnm.nilai_mata_java==3.33)
												{
													cout<<"\t B+";
												}
												else if(hpnm.nilai_mata_java==3.00)
												{
													cout<<"\t B";
												}
												else if(hpnm.nilai_mata_java==2.67)
												{
													cout<<"\t B-";
												}
												else if(hpnm.nilai_mata_java==2.33)
												{
													cout<<"\t C+";
												}
												else if(hpnm.nilai_mata_java==2.00)
												{
													cout<<"\t C";
												}
												else if(hpnm.nilai_mata_java==1.67)
												{
													cout<<"\t C-";
												}
												else if(hpnm.nilai_mata_java==1.33)
												{
													cout<<"\t D+";
												}
												else if(hpnm.nilai_mata_java==1.00)
												{
													cout<<"\t D";
												}
												else if(hpnm.nilai_mata_java==0.67)
												{
													cout<<"\t E";
												}
												else if(hpnm.nilai_mata_java==0.33)
												{
													cout<<"\t E-";
												}
												else if(hpnm.nilai_mata_java==0.00)
												{
													cout<<"\t F";
												}

												
												cout<<"\t     "<<hpnm.nilai_kredit_java<<endl;

												cout<<"  F4106 "<<" SISTEM ANALISIS & REKABENTUK    "<<"    2.00 "<<"\t    "<<setprecision(2)<<hpnm.nilai_mata_sad;
												
												if(hpnm.nilai_mata_sad==4.00)
												{
													cout<<"\t A";
												}
												else if(hpnm.nilai_mata_sad==3.67)
												{
													cout<<"\t A-";
												}
												else if(hpnm.nilai_mata_sad==3.33)
												{
													cout<<"\t B+";
												}
												else if(hpnm.nilai_mata_sad==3.00)
												{
													cout<<"\t B";
												}
												else if(hpnm.nilai_mata_sad==2.67)
												{
													cout<<"\t B-";
												}
												else if(hpnm.nilai_mata_sad==2.33)
												{
													cout<<"\t C+";
												}
												else if(hpnm.nilai_mata_sad==2.00)
												{
													cout<<"\t C";
												}
												else if(hpnm.nilai_mata_sad==1.67)
												{
													cout<<"\t C-";
												}
												else if(hpnm.nilai_mata_sad==1.33)
												{
													cout<<"\t D+";
												}
												else if(hpnm.nilai_mata_sad==1.00)
												{
													cout<<"\t D";
												}
												else if(hpnm.nilai_mata_sad==0.67)
												{
													cout<<"\t E";
												}
												else if(hpnm.nilai_mata_sad==0.33)
												{
													cout<<"\t E-";
												}
												else if(hpnm.nilai_mata_sad==0.00)
												{
													cout<<"\t F";
												}


												cout<<"\t     "<<hpnm.nilai_kredit_sad<<endl;

												cout<<"  F4109 "<<" PANGKALAN DATA                  "<<"    3.00 "<<"\t    "<<setprecision(2)<<hpnm.nilai_mata_db;
												
												if(hpnm.nilai_mata_db==4.00)
												{
													cout<<"\t A";
												}
												else if(hpnm.nilai_mata_db==3.67)
												{
													cout<<"\t A-";
												}
												else if(hpnm.nilai_mata_db==3.33)
												{
													cout<<"\t B+";
												}
												else if(hpnm.nilai_mata_db==3.00)
												{
													cout<<"\t B";
												}
												else if(hpnm.nilai_mata_db==2.67)
												{
													cout<<"\t B-";
												}
												else if(hpnm.nilai_mata_db==2.33)
												{
													cout<<"\t C+";
												}
												else if(hpnm.nilai_mata_db==2.00)
												{
													cout<<"\t C";
												}
												else if(hpnm.nilai_mata_db==1.67)
												{
													cout<<"\t C-";
												}
												else if(hpnm.nilai_mata_db==1.33)
												{
													cout<<"\t D+";
												}
												else if(hpnm.nilai_mata_db==1.00)
												{
													cout<<"\t D";
												}
												else if(hpnm.nilai_mata_db==0.67)
												{
													cout<<"\t E";
												}
												else if(hpnm.nilai_mata_db==0.33)
												{
													cout<<"\t E-";
												}
												else if(hpnm.nilai_mata_db==0.00)
												{
													cout<<"\t F";
												}


												cout<<"\t     "<<hpnm.nilai_kredit_db<<endl;

												cout<<"  F4805 "<<" AUDIO VIDEO DIGITAL             "<<"    2.00 "<<"\t    "<<setprecision(2)<<hpnm.nilai_mata_avd;
												
												if(hpnm.nilai_mata_avd==4.00)
												{
													cout<<"\t A";
												}
												else if(hpnm.nilai_mata_avd==3.67)
												{
													cout<<"\t A-";
												}
												else if(hpnm.nilai_mata_avd==3.33)
												{
													cout<<"\t B+";
												}
												else if(hpnm.nilai_mata_avd==3.00)
												{
													cout<<"\t B";
												}
												else if(hpnm.nilai_mata_avd==2.67)
												{
													cout<<"\t B-";
												}
												else if(hpnm.nilai_mata_avd==2.33)
												{
													cout<<"\t C+";
												}
												else if(hpnm.nilai_mata_avd==2.00)
												{
													cout<<"\t C";
												}
												else if(hpnm.nilai_mata_avd==1.67)
												{
													cout<<"\t C-";
												}
												else if(hpnm.nilai_mata_avd==1.33)
												{
													cout<<"\t D+";
												}
												else if(hpnm.nilai_mata_avd==1.00)
												{
													cout<<"\t D";
												}
												else if(hpnm.nilai_mata_avd==0.67)
												{
													cout<<"\t E";
												}
												else if(hpnm.nilai_mata_avd==0.33)
												{
													cout<<"\t E-";
												}
												else if(hpnm.nilai_mata_avd==0.00)
												{
													cout<<"\t F";
												}


												cout<<"\t     "<<hpnm.nilai_kredit_avd<<endl;
												cout<<"==============================================================================================="<<endl;

												cout<<endl;
												cout<<"PNM"<<"\t:"<<setprecision(2)<<hpnm.jum_sem5<<endl;
												cout<<"HPNM"<<"\t:"<<setprecision(2)<<hpnm.totalhpnm<<endl;
												cout<<endl;

												if((hpnm.totalhpnm>=2.00)&&(hpnm.totalhpnm<=4.00))
												{
													cout<<"KEPUTUSAN"<<"\t:"<<"\t"<<"KEDUDUKAN BAIK";
												}
												else if((hpnm.totalhpnm>=1.60)&&(hpnm.totalhpnm<=2.00))
												{
													cout<<"KEPUTUSAN"<<"\t:"<<"\t"<<"KEDUDUKAN BERSYARAT";
												}
												else
												{
													cout<<"KEPUTUSAN"<<"\t:"<<"\t"<<"MENGULANG SEMESTER";
												}
												cout<<endl<<endl;

												cout<<"STATUS"<<"\t:"<<"\t\t\t\t\tABDUL GAFFAR BIN ZAKARIA"<<endl;
												cout<<"1 - GAGAL KALI PERTAMA"<<"\t\t\t\tKETUA JAB. TEK. MAKLUMAT & KOMUNIKASI"<<endl;
												cout<<"2 - GAGAL KALI KEDUA"<<"\t\t\t\tb.p PENGARAH"<<endl;
												cout<<"3 - GAGAL KALI KETIGA"<<"\t\t\t\tPOLITEKNIK SULTAN MIZAN ZAINAL ABIDIN"<<endl;
												cout<<endl;

flagsalah2:
												cout<<"\t\tAnda ingin meneruskan mengunakan Menu Kira HPNM (Y/N)?: ";cin>>menupengguna.guna_nilai;
												if(menupengguna.guna_nilai=='Y'||menupengguna.guna_nilai=='y')
												{
													system("cls");
													goto flagmenupro;
												}
												else if(menupengguna.guna_nilai=='N'||menupengguna.guna_nilai=='n')
												{
													system("cls");
													goto menupro;
												}
												else
												{
													cout<<endl<<endl;
													cout<<"\t\t\7Masukkan Anda Salah"<<endl<<endl;
													goto flagsalah2;
												}

												}

												break;
											}
										case 4:
											{
												system("cls");
												goto menupro;
												break;
											}
										default:
											{
												system("cls");
												cout<<"\n\t\t\t\7SALAH INPUT"<<endl<<endl;
												goto flagmenukirahpnm;
											}
										}

									break;
								}

							case 3:
								{
									goto menupro;
									break;
								}
							default:
								{
									
									cout<<"\n\t\t\t\7SALAH INPUT"<<endl<<endl;
									goto flagmenupro;
								}
							}
							break;
						}
					
					case 3:
						{
							goto flag2;
							break;
						}

					default:
						{

							cout<<"\n\t\t\t\7SALAH INPUT"<<endl<<endl;
							goto menupro;
						}
					}

					break;
					}
				
				case 2:
					{
						system("cls");
						//aturcara dalam BI
menupro1:

					cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
					cout<<"\t|                            USER MENU                                         |"<<endl;
					cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
					cout<<"\t|[1] - User Manual							       |"<<endl;
					cout<<"\t|[2] - Login		   						       |"<<endl;
					cout<<"\t|[3] - Exit                                                                    |"<<endl;
					cout<<"\n\tInsert Your Choice :";
					cin>>menupengguna.menu;
					system("cls");

					switch(menupengguna.menu)
					{
					case 1:
						{
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\t|                            USER MANUAL                                       |"<<endl;
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
flagmanual1:
						//manual pengguna - menerangkan tentang cara pengguna aplikasi ini
						cout<<"\tINTRODUCTION"<<endl;
						cout<<"\tFrom the beginning,user can choose language."<<endl;
						cout<<"\tIf user choose Malay language, user will enter to User Menu \n\tin Malay Language";
						cout<<" and if user choose English language, user will enter to\n\tUser Menu in English Language."<<endl;

						cout<<"\n\t\t\tPRESS ENTER...\n"<<endl;
						getch();
						system("cls");
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\t|                                USER MENU                                     |"<<endl;
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\tIn this menu, user have three choice to do.if user choose user menu, user will be"<<endl;
						cout<<"\texpose to guideline to use this program.If user choose to enter The Programs, user "<<endl;
						cout<<"\twill given choice for use Mata Nilai Guide and Calculate Menu HPNM Semenster 5."<<endl;
						cout<<"\tIn this menu, provided exit menu for user easy to out from this program"<<endl;
						

						cout<<"\n\t\t\tPRESS ENTER...\n"<<endl;
						getch();
						system("cls");

						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\t|                                LOGIN USER                                    |"<<endl;
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\tThis menu Login User, will request user to insert full name, matrix number and"<<endl;
						cout<<"\tic nomber for enter to the program. User will enter to Menu Program if personal"<<endl;
						cout<<"\t infomation match."<<endl;

						cout<<"\n\t\t\tPRESS ENTER...\n"<<endl;
						getch();
						system("cls");

						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\t|                              MENU PROGRAM                                    |"<<endl;
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\tIn this program,user can use Nilai Mata Guide where user get to enter exam mark"<<endl;
						cout<<"\tthey have for get Nilai Mata to count HPNM. Nilai Mata Guide will display grade"<<endl;
						cout<<"\twhere user insert their mark. Meanwhile menu HPNM Calculate will count user marks"<<endl;
						cout<<"\tin semester 5 and semester before.Menu Exit will transfer user to previus menu."<<endl;


						cout<<"\n\t\t\tPRESS ENTER...\n"<<endl;
						getch();
						system("cls");


						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\t|                            NILAI MATA GUIDE                                  |"<<endl;
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\tThis menu will allowed user to insert mark they have get and this menu will be "<<endl;
						cout<<"\ta nilai mata to user qwith grade for they nilai mata have. This menu not allowed"<<endl;
						cout<<"\tuser insert nilai mata bigger then 100 and not accept marks less then 0"<<endl;
						
						cout<<"\n\t\t\tPRESS ENTER...\n"<<endl;
						getch();
						system("cls");


						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\t|                          PNM SEM 5 CALCULATE                                 |"<<endl;
						cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
						cout<<"\tIn this menu,the program will request user to insert nilai mata in subject"<<endl;
						cout<<"\thas register at this sem.After that,user will enter Menu HPNM Calculate, where,"<<endl;
						cout<<"\thave a PHM 5 Calculate, Update data, Print Slip and Exit.Menu PNM 5 Calculate"<<endl;
						cout<<"\twill count new nilai mata have insert. Meanwhile, updata menu will allowed user"<<endl;
						cout<<"\tto chance their nilai mata.Print Slip Menu will print overall exam result"<<endl;
						cout<<"\tsemester 5. In this menu, user must count mark before get update data and to do"<<endl;
						cout<<"\tprint slip.If user want to print slip or update data, one warning will show."<<endl;

						cout<<"\n\t\t\tPRESS ENTER...\n"<<endl;
						getch();

flagmanualsalah1:
						cout<<"\t\tYou want continue use User Manual (Y/N)?: ";cin>>menupengguna.guna_nilai;
						if(menupengguna.guna_nilai=='Y'||menupengguna.guna_nilai=='y')
						{
							system("cls");
							goto flagmanual1;
						}
						else if(menupengguna.guna_nilai=='N'||menupengguna.guna_nilai=='n')
						{
							system("cls");
							goto menupro1;
						}
						else
						{
							cout<<endl<<endl;
							cout<<"\t\t\7Your Entry Is Wrong "<<endl<<endl;
							goto flagmanualsalah1;
						}
						break;
						}

					case 2:
						{

							long masa_t=0, now;
							now = time(NULL);

							cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
							cout<<"\t|\t\t\4Current Date & Time: "<<ctime(&now);
							cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
							cout<<"\t|                                 LOGIN USER                                   |"<<endl;
							cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
							cout<<"\tPlease Insert Your Name :";
							cin.getline(menupengguna.nama,50);
							cin.getline(menupengguna.nama,50);
flagnomatrik1:
							count++;
							if(count<=3)
							{
								cout<<"\tPlease insert your Matrix Number :";cin>>menupengguna.no_matrik;

								if(strlen(menupengguna.no_matrik)==11)
								{
									goto flagnoic1;
								}
								else if(strlen(menupengguna.no_matrik)>11)
								{
									cout<<"\7\n\tPlease check your Matric Number"<<endl;
									cout<<"\tTrail : "<<count<<endl<<endl;
									goto flagnomatrik1;
								}
								else
								{
									cout<<"\7\n\tYour entry is wrong "<<endl;
									cout<<"\tTrail : "<<count<<endl<<endl;
									goto flagnomatrik1;
								}
							}
							else
							{
								goto amaran;
							}

flagnoic1:
							i++;
							if(i<=3)
							{
								cout<<"\tPlease entry your Identity Card Number's:";cin>>menupengguna.noic;

								if(strlen(menupengguna.noic)==12)
								{
									cout<<"\n\t\t\tPRESS ENTER...\n"<<endl;
									getch();
									system("cls");

								}
								else if(strlen(menupengguna.noic)>12)
								{
									cout<<"\7\n\tPlease check your Identity Card Number's!"<<endl;
									cout<<"\tTrail : "<<i<<endl<<endl;
									goto flagnoic1;
								}
								else
								{
									cout<<"\7\n\tYour entry is wrong"<<endl;
									cout<<"\tTrail : "<<i<<endl<<endl;
									goto flagnoic1;
								}
							}
							else
							{
								goto amaran;
							}

flagmenupro1:
							
							cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
							cout<<"\t|                            MENU PROGRAM                                      |"<<endl;
							cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
							cout<<"\t|[1] - Nilai Mata Guide							       |"<<endl;
							cout<<"\t|[2] - HPNM Calculate							       |"<<endl;
							cout<<"\t|[3] - Exit								       |"<<endl;
							cout<<"\n\tInsert Your Choice :";
							cin>>menupengguna.menupro;
							system("cls");
							switch(menupengguna.menupro)
							{
							case 1:
								{
									//pengguna uji markah mereka untuk dapatkan gred dan nilai mata mereka
gmarkah1:
									cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
									cout<<"\t|                            NILAI MATA GUIDE                                  |"<<endl;
									cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;

									cout<<"\t\tPlease Insert Your Subject Mark:";
									cin>>menupengguna.markah;

									if(menupengguna.markah>100||menupengguna.markah<0)
									{
										system("cls");
										cout<<"\n\t\t\7Hope Apology!You only allowed in value of 0 - 100 "<<endl<<endl;
										goto gmarkah1;
									}

									else if(menupengguna.markah>=80 && menupengguna.markah<=100)
									{
										cout<<"\t\tGred: A"<<endl;
										cout<<"\t\tNilai Mata: 4.00"<<endl;
									}
									else if(menupengguna.markah>=75 && menupengguna.markah<=79)
									{
										cout<<"\t\tGred: A-"<<endl;
										cout<<"\t\tNilai Mata: 3.67"<<endl;
									}
									else if(menupengguna.markah>=70 && menupengguna.markah<=74)
									{
										cout<<"\t\tGred: B+"<<endl;
										cout<<"\t\tNilai Mata: 3.33"<<endl;
									}
									else if(menupengguna.markah>=65 && menupengguna.markah<=69)
									{
										cout<<"\t\tGred: B"<<endl;
										cout<<"\t\tNilai Mata: 3.00"<<endl;
									}
									else if(menupengguna.markah>=60 && menupengguna.markah<=64)
									{
										cout<<"\t\tGred: B-"<<endl;
										cout<<"\t\tNilai Mata: 2.67"<<endl;
									}
									else if(menupengguna.markah>=55 && menupengguna.markah<=59)
									{
										cout<<"\t\tGred: C+"<<endl;
										cout<<"\t\tNilai Mata: 2.33"<<endl;
									}
									else if(menupengguna.markah>=50 && menupengguna.markah<=54)
									{
										cout<<"\t\tGred: C"<<endl;
										cout<<"\t\tNilai Mata: 2.00"<<endl;
									}
									else if(menupengguna.markah>=47 && menupengguna.markah<=49)
									{
										cout<<"\t\tGred: C-"<<endl;
										cout<<"\t\tNilai Mata: 1.67"<<endl;
									}
									else if(menupengguna.markah>=44 && menupengguna.markah<=46)
									{
										cout<<"\t\tGred: D+"<<endl;
										cout<<"\t\tNilai Mata: 1.33"<<endl;
									}
									else if(menupengguna.markah>=40 && menupengguna.markah<=43)
									{
										cout<<"\t\tGred: D"<<endl;
										cout<<"\t\tNilai Mata: 1.00"<<endl;
									}
									else if(menupengguna.markah>=30 && menupengguna.markah<=39)
									{
										cout<<"\t\tGred: E"<<endl;
										cout<<"\t\tNilai Mata: 0.67"<<endl;
									}
									else if(menupengguna.markah>=20 && menupengguna.markah<=29)
									{
										cout<<"\t\tGred: E-"<<endl;
										cout<<"\t\tNilai Mata: 0.33"<<endl;
									}
									else
									{
										cout<<"\t\tGred: F"<<endl;
										cout<<"\t\tNilai Mata: 0.00"<<endl;
									}

									cout<<"\n\t\t\tPRESS ENTER...\n"<<endl;
									getch();

flagsalah01:
									cout<<"\t\tYou want continue use Nilai Mata Guide (Y/N)?: ";cin>>menupengguna.guna_nilai;
									if(menupengguna.guna_nilai=='Y'||menupengguna.guna_nilai=='y')
									{
										system("cls");
										goto gmarkah1;
									}
									else if(menupengguna.guna_nilai=='N'||menupengguna.guna_nilai=='n')
									{
										system("cls");
										goto flagmenupro1;
									}
									else
									{
										cout<<endl<<endl;
										cout<<"\t\t\7Your Entry Is Wrong "<<endl<<endl;
										goto flagsalah01;
									}

									break;
								}

							case 2:
								{
									
									//kira hpnm bagi sem 5 dan sem sebelumnya
									cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
									cout<<"\t|                            PNM SEM 5 CALCULATE                               |"<<endl;
									cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
									

									cout<<"\tStudent's Name : "<<menupengguna.nama<<endl;
									cout<<"\tMatric Number Student : "<<menupengguna.no_matrik<<endl<<endl;
flagkemaskini1:

									cout<<"\tPlease Entry Nilai Mata Achieved "<<endl;
									cout<<"\tOf subject following:"<<endl<<endl;

									//kira bi
flagnilaimata_eng1:
									cout<<"\tENGLISH FOR TECHNOLOGY PURPOSE 4: "<<"\t";
									cin>>hpnm.nilai_mata_eng;

									/*if(hpnm.nilai_mata_eng>=4.01)
									{
										cout<<endl;
										cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
										cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
										cout<<endl;
										goto flagnilaimata_eng1;
									}*/

									if((hpnm.nilai_mata_eng==4.00)||(hpnm.nilai_mata_eng==3.67)||(hpnm.nilai_mata_eng==3.33)||(hpnm.nilai_mata_eng==3.00)||(hpnm.nilai_mata_eng==2.67)||(hpnm.nilai_mata_eng==2.33)||(hpnm.nilai_mata_eng==2.00)||(hpnm.nilai_mata_eng==1.67)||(hpnm.nilai_mata_eng==1.33)||(hpnm.nilai_mata_eng==1.00)||(hpnm.nilai_mata_eng==0.67)||(hpnm.nilai_mata_eng==0.33)||(hpnm.nilai_mata_eng==0.00))
									{
										hpnm.nilai_kredit_eng=(1.50)*(hpnm.nilai_mata_eng);

									}
									else
									{
										cout<<endl;
										cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
										cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
error_eng1:
										cout<<"\tYou want use Panduan Nilai Mata as reference ?(Y/N): ";cin>>hpnm.panduan;
										if(hpnm.panduan=='Y'||hpnm.panduan=='y')
										{
											cout<<endl;
											pan.PNilaiEng();
											goto flagnilaimata_eng1;

										}
										else if(hpnm.panduan=='N'||hpnm.panduan=='n')
										{
											goto flagnilaimata_eng1;
											cout<<endl;
										}
										else
										{
											cout<<endl<<endl;
											cout<<"\t\t\7Your Entry Is Wrong"<<endl<<endl;
											goto error_eng1;
										}	
									}

									//kira algo
flagnilaimata_algo1:
									cout<<"\tALGORITMA & STRUKTUR DATA: "<<"\t\t";
									cin>>hpnm.nilai_mata_algo;

									/*if(hpnm.nilai_mata_algo>=4.01)
									{
										cout<<endl;
										cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
										cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
										cout<<endl;
										goto flagnilaimata_algo1;
									}*/

									if((hpnm.nilai_mata_algo==4.00)||(hpnm.nilai_mata_algo==3.67)||(hpnm.nilai_mata_algo==3.33)||(hpnm.nilai_mata_algo==3.00)||(hpnm.nilai_mata_algo==2.67)||(hpnm.nilai_mata_algo==2.33)||(hpnm.nilai_mata_algo==2.00)||(hpnm.nilai_mata_algo==1.67)||(hpnm.nilai_mata_algo==1.33)||(hpnm.nilai_mata_algo==1.00)||(hpnm.nilai_mata_algo==0.67)||(hpnm.nilai_mata_algo==0.33)||(hpnm.nilai_mata_algo==0.00))
									{
										hpnm.nilai_kredit_algo=(3.00)*(hpnm.nilai_mata_algo);

									}
									else
									{
										cout<<endl;
										cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
										cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
error_algo1:
										cout<<"\tYou want use Panduan Nilai Mata as reference ?(Y/N): ";cin>>hpnm.panduan;
										if(hpnm.panduan=='Y'||hpnm.panduan=='y')
										{
											cout<<endl;
											pan.PNilaiEng();
											goto flagnilaimata_algo1;

										}
										else if(hpnm.panduan=='N'||hpnm.panduan=='n')
										{
											goto flagnilaimata_algo1;
											cout<<endl;
										}
										else
										{
											cout<<endl<<endl;
											cout<<"\t\t\7Your Entry Is Wrong"<<endl<<endl;
											goto error_algo1;
										}	
									}
									//kira java

flagnilaimata_java1:
									cout<<"\tPENGATURCARAAN JAVA: "<<"\t\t\t";
									cin>>hpnm.nilai_mata_java;

									/*if(hpnm.nilai_mata_java>=4.01)
									{
										cout<<endl;
										cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
										cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
										cout<<endl;
										goto flagnilaimata_java1;
									}*/

									if((hpnm.nilai_mata_java==4.00)||(hpnm.nilai_mata_java==3.67)||(hpnm.nilai_mata_java==3.33)||(hpnm.nilai_mata_java==3.00)||(hpnm.nilai_mata_java==2.67)||(hpnm.nilai_mata_java==2.33)||(hpnm.nilai_mata_java==2.00)||(hpnm.nilai_mata_java==1.67)||(hpnm.nilai_mata_java==1.33)||(hpnm.nilai_mata_java==1.00)||(hpnm.nilai_mata_java==0.67)||(hpnm.nilai_mata_java==0.33)||(hpnm.nilai_mata_java==0.00))
									{
										hpnm.nilai_kredit_java=(4.00)*(hpnm.nilai_mata_java);

									}
									else
									{
										cout<<endl;
										cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
										cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
error_java1:
										cout<<"\tYou want use Panduan Nilai Mata as reference ?(Y/N): ";cin>>hpnm.panduan;
										if(hpnm.panduan=='Y'||hpnm.panduan=='y')
										{
											cout<<endl;
											pan.PNilaiEng();
											goto flagnilaimata_java1;

										}
										else if(hpnm.panduan=='N'||hpnm.panduan=='n')
										{
											goto flagnilaimata_java1;
											cout<<endl;
										}
										else
										{
											cout<<endl<<endl;
											cout<<"\t\t\7Your Entry Is Wrong"<<endl<<endl;
											goto error_java1;
										}	
									}

									//kira sad
flagnilaimata_sad1:
									cout<<"\tSISTEM ANALISIS & REKABENTUK: "<<"\t\t";
									cin>>hpnm.nilai_mata_sad;

									/*if(hpnm.nilai_mata_sad>=4.01)
									{
										cout<<endl;
										cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
										cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
										cout<<endl;
										goto flagnilaimata_sad1;
									}*/

									if((hpnm.nilai_mata_sad==4.00)||(hpnm.nilai_mata_sad==3.67)||(hpnm.nilai_mata_sad==3.33)||(hpnm.nilai_mata_sad==3.00)||(hpnm.nilai_mata_sad==2.67)||(hpnm.nilai_mata_sad==2.33)||(hpnm.nilai_mata_sad==2.00)||(hpnm.nilai_mata_sad==1.67)||(hpnm.nilai_mata_sad==1.33)||(hpnm.nilai_mata_sad==1.00)||(hpnm.nilai_mata_sad==0.67)||(hpnm.nilai_mata_sad==0.33)||(hpnm.nilai_mata_sad==0.00))
									{
										hpnm.nilai_kredit_sad=(2.00)*(hpnm.nilai_mata_sad);

									}
									else
									{
										cout<<endl;
										cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
										cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
error_sad1:
										cout<<"\tYou want use Panduan Nilai Mata as reference ?(Y/N): ";cin>>hpnm.panduan;
										if(hpnm.panduan=='Y'||hpnm.panduan=='y')
										{
											cout<<endl;
											pan.PNilaiEng();
											goto flagnilaimata_sad1;

										}
										else if(hpnm.panduan=='N'||hpnm.panduan=='n')
										{
											goto flagnilaimata_sad1;
											cout<<endl;
										}
										else
										{
											cout<<endl<<endl;
											cout<<"\t\t\7Your Entry Is Wrong"<<endl<<endl;
											goto error_sad1;
										}	
									}

									//kira db

flagnilaimata_db1:
									cout<<"\tPANGKALAN DATA: "<<"\t\t\t";
									cin>>hpnm.nilai_mata_db;

									/*if(hpnm.nilai_mata_db>=4.01)
									{
										cout<<endl;
										cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
										cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
										cout<<endl;
										goto flagnilaimata_db1;
									}*/

									if((hpnm.nilai_mata_db==4.00)||(hpnm.nilai_mata_db==3.67)||(hpnm.nilai_mata_db==3.33)||(hpnm.nilai_mata_db==3.00)||(hpnm.nilai_mata_db==2.67)||(hpnm.nilai_mata_db==2.33)||(hpnm.nilai_mata_db==2.00)||(hpnm.nilai_mata_db==1.67)||(hpnm.nilai_mata_db==1.33)||(hpnm.nilai_mata_db==1.00)||(hpnm.nilai_mata_db==0.67)||(hpnm.nilai_mata_db==0.33)||(hpnm.nilai_mata_db==0.00))
									{
										hpnm.nilai_kredit_db=(3.00)*(hpnm.nilai_mata_db);

									}
									else
									{
										cout<<endl;
										cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
										cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
error_db1:
										cout<<"\tYou want use Panduan Nilai Mata as reference ?(Y/N): ";cin>>hpnm.panduan;
										if(hpnm.panduan=='Y'||hpnm.panduan=='y')
										{
											cout<<endl;
											pan.PNilaiEng();
											goto flagnilaimata_db1;

										}
										else if(hpnm.panduan=='N'||hpnm.panduan=='n')
										{
											goto flagnilaimata_db1;
											cout<<endl;
										}
										else
										{
											cout<<endl<<endl;
											cout<<"\t\t\7Your Entry Is Wrong"<<endl<<endl;
											goto error_db1;
										}	
									}


									//kira avd
flagnilaimata_avd1:
									cout<<"\tAUDIO VIDEO DIGITAL: "<<"\t\t\t";
									cin>>hpnm.nilai_mata_avd;

									/*if(hpnm.nilai_mata_avd>=4.01)
									{
										cout<<endl;
										cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
										cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
										cout<<endl;
										goto flagnilaimata_avd1;
									}*/

									if((hpnm.nilai_mata_avd==4.00)||(hpnm.nilai_mata_avd==3.67)||(hpnm.nilai_mata_avd==3.33)||(hpnm.nilai_mata_avd==3.00)||(hpnm.nilai_mata_avd==2.67)||(hpnm.nilai_mata_avd==2.33)||(hpnm.nilai_mata_avd==2.00)||(hpnm.nilai_mata_avd==1.67)||(hpnm.nilai_mata_avd==1.33)||(hpnm.nilai_mata_avd==1.00)||(hpnm.nilai_mata_avd==0.67)||(hpnm.nilai_mata_avd==0.33)||(hpnm.nilai_mata_avd==0.00))
									{
										hpnm.nilai_kredit_avd=(2.00)*(hpnm.nilai_mata_avd);

									}
									else
									{
										cout<<endl;
										cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
										cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
error_avd1:
										cout<<"\tYou want use Panduan Nilai Mata as reference ?(Y/N): ";cin>>hpnm.panduan;
										if(hpnm.panduan=='Y'||hpnm.panduan=='y')
										{
											cout<<endl;
											pan.PNilaiEng();
											goto flagnilaimata_avd1;

										}
										else if(hpnm.panduan=='N'||hpnm.panduan=='n')
										{
											goto flagnilaimata_avd1;
											cout<<endl;
										}
										else
										{
											cout<<endl<<endl;
											cout<<"\t\t\7Your Entry Is Wrong"<<endl<<endl;
											goto error_avd1;
										}		
									}

									cout<<endl;
	
									cout<<"\n\t\t\tPRESS ENTER..."<<endl;
									getch();
									system("cls");

										cout<<endl<<endl;

flagmenukirahpnm1:



										cout<<"\t\t+++++++++++++++++++++++++MENU+++++++++++++++++++++++++"<<endl;
										cout<<"\t\t|1.PNM 5 Calculate		   2.Updates Data    |"<<endl;
										cout<<"\t\t|3.Print Slip			   4.Exit	     |"<<endl;
										cout<<"\t\t++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
										cout<<"\n\t\tInsert Your Choice :";
										cin>>menupengguna.kira_hpnm;
									
										switch(menupengguna.kira_hpnm)
										{
										case 1:
											{

												//kira hpnm
											
												system("cls");
												cout<<endl;
												cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
												cout<<"\t|                            PNM SEM 5 CALCULATE                               |"<<endl;
												cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
												cout<<endl;
												cout<<"\t| CODE  ";
												cout<<"| COURSE NAME  ";
												cout<<"\t\t";
												cout<<"\t | NILAI MATA |";
												cout<<"\t CREDIT POINTS  |"<<endl;
												cout<<"\t  A4003 "<<" ENGLISH FOR TECHNOLOGY PURPOSE 4 "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_eng<<"\t     "<<hpnm.nilai_kredit_eng<<endl;
												cout<<"\t  F4104 "<<" ALGORITMA & STRUKTUR DATA       "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_algo<<"\t     "<<hpnm.nilai_kredit_algo<<endl;
												cout<<"\t  F4105 "<<" PENGATURCARAAN JAVA             "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_java<<"\t     "<<hpnm.nilai_kredit_java<<endl;
												cout<<"\t  F4106 "<<" SISTEM ANALISIS & REKABENTUK    "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_sad<<"\t     "<<hpnm.nilai_kredit_sad<<endl;
												cout<<"\t  F4109 "<<" PANGKALAN DATA                  "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_db<<"\t     "<<hpnm.nilai_kredit_db<<endl;
												cout<<"\t  F4805 "<<" AUDIO VIDEO DIGITAL             "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_avd<<"\t     "<<hpnm.nilai_kredit_avd<<endl;
												cout<<endl;


												hpnm.sem5=hpnm.nilai_kredit_algo+hpnm.nilai_kredit_avd+hpnm.nilai_kredit_db+hpnm.nilai_kredit_eng+hpnm.nilai_kredit_java+hpnm.nilai_kredit_sad;

												hpnm.jum_sem5=(hpnm.sem5)/(1.50+4.00+3.00+3.00+2.00+2.00);


												cout<<"\t\tPNM This Sem: "<<setprecision(2)<<hpnm.jum_sem5;
												cout<<endl;

												cout<<"\n\t\t\tPRESS ENTER...\n"<<endl;
												getch();

flagsalah11:
												cout<<"\t\tYou want continue use Menu Kira PNM 5  (Y/N)?: ";cin>>menupengguna.guna_nilai;
												if(menupengguna.guna_nilai=='Y'||menupengguna.guna_nilai=='y')
												{
													system("cls");
													goto flagmenukirahpnm1;
												}
												else if(menupengguna.guna_nilai=='N'||menupengguna.guna_nilai=='n')
												{
													system("cls");
													goto flagmenupro1;
												}
												else
												{
													cout<<endl<<endl;
													cout<<"\t\t\7Your Entry Is Wrong "<<endl<<endl;
													goto flagsalah11;
												}
									
												break;
											}
										case 2:
											{

												if(hpnm.sem5==0)
												{
													system("cls");
													cout<<endl;
													cout<<"\t\t|========================================================|"<<endl;
													cout<<"\t\t\7|Hope Apology!. Please make PNM SEM5's count first .     |"<<endl;
													cout<<"\t\t|========================================================|"<<endl;
													cout<<endl;
													goto flagmenukirahpnm1;
												}
												else
												{

												//kemaskini data yang dimasukkan
												system("cls");
												cout<<"\t\t\t----INFORMATION THAT HAD IN ENTRY PREVIOUSLY ----"<<endl<<endl;												
												cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
												cout<<"\t|                            PNM SEM 5 CALCULATE                               |"<<endl;
												cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
												cout<<"\t| CODE  ";
												cout<<"| COURSE NAME  ";
												cout<<"\t\t";
												cout<<"\t | NILAI MATA |"<<endl;
												cout<<"\t  A4003 "<<" ENGLISH FOR TECHNOLOGY PURPOSE 4 "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_eng<<endl;
												cout<<"\t  F4104 "<<" ALGORITMA & STRUKTUR DATA       "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_algo<<endl;
												cout<<"\t  F4105 "<<" PENGATURCARAAN JAVA             "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_java<<endl;
												cout<<"\t  F4106 "<<" SISTEM ANALISIS & REKABENTUK    "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_sad<<endl;
												cout<<"\t  F4109 "<<" PANGKALAN DATA                  "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_db<<endl;
												cout<<"\t  F4805 "<<" AUDIO VIDEO DIGITAL             "<<"\t"<<setprecision(3)<<hpnm.nilai_mata_avd<<endl;
												cout<<endl;
												goto flagkemaskini1;
												}
												
												break;

											}
										case 3:
											{
												//cetak slip

												if(hpnm.sem5==0)
												{
													system("cls");
													cout<<endl;
													cout<<"\t\t|========================================================|"<<endl;
													cout<<"\t\t\7|Hope Apology!. Please make PNM SEM5's count first .     |"<<endl;
													cout<<"\t\t|========================================================|"<<endl;
													cout<<endl;
													goto flagmenukirahpnm1;
												}
												else
												{
												system("cls");
												cout<<endl;
												cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
												cout<<"\t|                            PRINT SLIP EXAMINATION                            |"<<endl;
												cout<<"\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
												cout<<endl;
flagpnm11:
												cout<<"\tPlease Insert average Nilai Mata semester 1 : ";
												cin>>hpnm.pnm1;

												if(hpnm.pnm1>=4.01)
												{
													cout<<endl;
													cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
													//cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
													cout<<endl;
													goto flagpnm11;
												}

												if(hpnm.pnm1<0)
												{
													cout<<endl;
													cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
													//cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
													cout<<endl;
													goto flagpnm11;
												}
			

												cout<<endl;
flagpnm21:

												cout<<"\tPlease Insert average Nilai Mata semester 2 : ";
												cin>>hpnm.pnm2;

												if(hpnm.pnm2>=4.01)
												{
													cout<<endl;
													cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
													//cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
													cout<<endl;
													goto flagpnm21;
												}

												if(hpnm.pnm2<0)
												{
													cout<<endl;
													cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
													//cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
													cout<<endl;
													goto flagpnm21;
												}

												cout<<endl;
flagpnm31:

												cout<<"\tPlease Insert average Nilai Mata semester 3 : ";
												cin>>hpnm.pnm3;
												
												if(hpnm.pnm3>=4.01)
												{
													cout<<endl;
													cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
													//cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
													cout<<endl;
													goto flagpnm31;
												}

												
												if(hpnm.pnm3<0)
												{
													cout<<endl;
													cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
													//cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
													cout<<endl;
													goto flagpnm31;
												}
												
												hpnm.totalhpnm=(hpnm.pnm1+hpnm.pnm2+hpnm.pnm3+hpnm.jum_sem5)/4;

												cout<<endl;

												cout<<"\n\t\tPRESS ENTER TO DISPLAY SLIP TOTAL. . . ."<<endl;
												getch();

												system("cls");
												cout.setf(ios::fixed,ios::floatfield);
												char tarikh[10];
												_strdate(tarikh);
												cout<<endl;
												cout<<"\t\t\t\t\t          *"<<endl;
												cout<<"\t\t\t\t\t         ***"<<endl;
												cout<<"\t\t\t\t\t        *****"<<endl;
												cout<<"\t\t\t\t\t       *******"<<endl;
												cout<<"\t\t\t\t\t        psmza  "<<endl;
												cout<<"\t\t\t=================================================="<<endl;
												cout<<"\t\t\t\tSTUDENT SCORES SLIPS SEMESTER 5 "<<endl;
												cout<<"\t\t\tDIPLOMA IN INFORMATION TECHNOLOGY & COMMUNICATIONS"<<endl;
												cout<<"\t\t\t=================================================="<<endl;
												cout<<endl<<endl;

												cout<<"Name: "<<menupengguna.nama<<"\t\t\tCourse Code: DIP"<<endl;
												cout<<"Matrix No: "<<menupengguna.no_matrik<<"\t\t\t\t\tSemester: 5"<<endl;
												cout<<"I/C No: "<<menupengguna.noic<<"\t\t\t\t\tDate: "<<tarikh<<endl;
												
												cout<<"==============================================================================================="<<endl;
												cout<<"| CODE "<<"| COURSE NAME "<<"\t\t"<<"\t| CREDIT HOURS "<<"\t| NILAI MATA |"<<"\tGRADE |"<<"\tCREDIT POINTS |"<<endl;
												cout<<"==============================================================================================="<<endl;
												cout<<"  A4003 "<<" ENGLISH FOR TECHNOLOGY PURPOSE 4 "<<"   1.50 "<<"\t    "<<setprecision(2)<<hpnm.nilai_mata_eng;

												if(hpnm.nilai_mata_eng==4.00)
												{
													cout<<"\t A";
												}
												else if(hpnm.nilai_mata_eng==3.67)
												{
													cout<<"\t A-";
												}
												else if(hpnm.nilai_mata_eng==3.33)
												{
													cout<<"\t B+";
												}
												else if(hpnm.nilai_mata_eng==3.00)
												{
													cout<<"\t B";
												}
												else if(hpnm.nilai_mata_eng==2.67)
												{
													cout<<"\t B-";
												}
												else if(hpnm.nilai_mata_eng==2.33)
												{
													cout<<"\t C+";
												}
												else if(hpnm.nilai_mata_eng==2.00)
												{
													cout<<"\t C";
												}
												else if(hpnm.nilai_mata_eng==1.67)
												{
													cout<<"\t C-";
												}
												else if(hpnm.nilai_mata_eng==1.33)
												{
													cout<<"\t D+";
												}
												else if(hpnm.nilai_mata_eng==1.00)
												{
													cout<<"\t D";
												}
												else if(hpnm.nilai_mata_eng==0.67)
												{
													cout<<"\t E";
												}
												else if(hpnm.nilai_mata_eng==0.33)
												{
													cout<<"\t E-";
												}
												else if(hpnm.nilai_mata_eng==0.00)
												{
													cout<<"\t F";
												}

												cout<<"\t     "<<hpnm.nilai_kredit_eng<<endl;

												cout<<"  F4104 "<<" ALGORITMA & STRUKTUR DATA       "<<"    3.00 "<<"\t    "<<setprecision(2)<<hpnm.nilai_mata_algo;
												
												if(hpnm.nilai_mata_algo==4.00)
												{
													cout<<"\t A";
												}
												else if(hpnm.nilai_mata_algo==3.67)
												{
													cout<<"\t A-";
												}
												else if(hpnm.nilai_mata_algo==3.33)
												{
													cout<<"\t B+";
												}
												else if(hpnm.nilai_mata_algo==3.00)
												{
													cout<<"\t B";
												}
												else if(hpnm.nilai_mata_algo==2.67)
												{
													cout<<"\t B-";
												}
												else if(hpnm.nilai_mata_algo==2.33)
												{
													cout<<"\t C+";
												}
												else if(hpnm.nilai_mata_algo==2.00)
												{
													cout<<"\t C";
												}
												else if(hpnm.nilai_mata_algo==1.67)
												{
													cout<<"\t C-";
												}
												else if(hpnm.nilai_mata_algo==1.33)
												{
													cout<<"\t D+";
												}
												else if(hpnm.nilai_mata_algo==1.00)
												{
													cout<<"\t D";
												}
												else if(hpnm.nilai_mata_algo==0.67)
												{
													cout<<"\t E";
												}
												else if(hpnm.nilai_mata_algo==0.33)
												{
													cout<<"\t E-";
												}
												else if(hpnm.nilai_mata_algo==0.00)
												{
													cout<<"\t F";
												}


												cout<<"\t     "<<hpnm.nilai_kredit_algo<<endl;

												cout<<"  F4105 "<<" PENGATURCARAAN JAVA             "<<"    4.00 "<<"\t    "<<setprecision(2)<<hpnm.nilai_mata_java;

												if(hpnm.nilai_mata_java==4.00)
												{
													cout<<"\t A";
												}
												else if(hpnm.nilai_mata_java==3.67)
												{
													cout<<"\t A-";
												}
												else if(hpnm.nilai_mata_java==3.33)
												{
													cout<<"\t B+";
												}
												else if(hpnm.nilai_mata_java==3.00)
												{
													cout<<"\t B";
												}
												else if(hpnm.nilai_mata_java==2.67)
												{
													cout<<"\t B-";
												}
												else if(hpnm.nilai_mata_java==2.33)
												{
													cout<<"\t C+";
												}
												else if(hpnm.nilai_mata_java==2.00)
												{
													cout<<"\t C";
												}
												else if(hpnm.nilai_mata_java==1.67)
												{
													cout<<"\t C-";
												}
												else if(hpnm.nilai_mata_java==1.33)
												{
													cout<<"\t D+";
												}
												else if(hpnm.nilai_mata_java==1.00)
												{
													cout<<"\t D";
												}
												else if(hpnm.nilai_mata_java==0.67)
												{
													cout<<"\t E";
												}
												else if(hpnm.nilai_mata_java==0.33)
												{
													cout<<"\t E-";
												}
												else if(hpnm.nilai_mata_java==0.00)
												{
													cout<<"\t F";
												}

												
												cout<<"\t     "<<hpnm.nilai_kredit_java<<endl;

												cout<<"  F4106 "<<" SISTEM ANALISIS & REKABENTUK    "<<"    2.00 "<<"\t    "<<setprecision(2)<<hpnm.nilai_mata_sad;
												
												if(hpnm.nilai_mata_sad==4.00)
												{
													cout<<"\t A";
												}
												else if(hpnm.nilai_mata_sad==3.67)
												{
													cout<<"\t A-";
												}
												else if(hpnm.nilai_mata_sad==3.33)
												{
													cout<<"\t B+";
												}
												else if(hpnm.nilai_mata_sad==3.00)
												{
													cout<<"\t B";
												}
												else if(hpnm.nilai_mata_sad==2.67)
												{
													cout<<"\t B-";
												}
												else if(hpnm.nilai_mata_sad==2.33)
												{
													cout<<"\t C+";
												}
												else if(hpnm.nilai_mata_sad==2.00)
												{
													cout<<"\t C";
												}
												else if(hpnm.nilai_mata_sad==1.67)
												{
													cout<<"\t C-";
												}
												else if(hpnm.nilai_mata_sad==1.33)
												{
													cout<<"\t D+";
												}
												else if(hpnm.nilai_mata_sad==1.00)
												{
													cout<<"\t D";
												}
												else if(hpnm.nilai_mata_sad==0.67)
												{
													cout<<"\t E";
												}
												else if(hpnm.nilai_mata_sad==0.33)
												{
													cout<<"\t E-";
												}
												else if(hpnm.nilai_mata_sad==0.00)
												{
													cout<<"\t F";
												}


												cout<<"\t     "<<hpnm.nilai_kredit_sad<<endl;

												cout<<"  F4109 "<<" PANGKALAN DATA                  "<<"    3.00 "<<"\t    "<<setprecision(2)<<hpnm.nilai_mata_db;
												
												if(hpnm.nilai_mata_db==4.00)
												{
													cout<<"\t A";
												}
												else if(hpnm.nilai_mata_db==3.67)
												{
													cout<<"\t A-";
												}
												else if(hpnm.nilai_mata_db==3.33)
												{
													cout<<"\t B+";
												}
												else if(hpnm.nilai_mata_db==3.00)
												{
													cout<<"\t B";
												}
												else if(hpnm.nilai_mata_db==2.67)
												{
													cout<<"\t B-";
												}
												else if(hpnm.nilai_mata_db==2.33)
												{
													cout<<"\t C+";
												}
												else if(hpnm.nilai_mata_db==2.00)
												{
													cout<<"\t C";
												}
												else if(hpnm.nilai_mata_db==1.67)
												{
													cout<<"\t C-";
												}
												else if(hpnm.nilai_mata_db==1.33)
												{
													cout<<"\t D+";
												}
												else if(hpnm.nilai_mata_db==1.00)
												{
													cout<<"\t D";
												}
												else if(hpnm.nilai_mata_db==0.67)
												{
													cout<<"\t E";
												}
												else if(hpnm.nilai_mata_db==0.33)
												{
													cout<<"\t E-";
												}
												else if(hpnm.nilai_mata_db==0.00)
												{
													cout<<"\t F";
												}


												cout<<"\t     "<<hpnm.nilai_kredit_db<<endl;

												cout<<"  F4805 "<<" AUDIO VIDEO DIGITAL             "<<"    2.00 "<<"\t    "<<setprecision(2)<<hpnm.nilai_mata_avd;
												
												if(hpnm.nilai_mata_avd==4.00)
												{
													cout<<"\t A";
												}
												else if(hpnm.nilai_mata_avd==3.67)
												{
													cout<<"\t A-";
												}
												else if(hpnm.nilai_mata_avd==3.33)
												{
													cout<<"\t B+";
												}
												else if(hpnm.nilai_mata_avd==3.00)
												{
													cout<<"\t B";
												}
												else if(hpnm.nilai_mata_avd==2.67)
												{
													cout<<"\t B-";
												}
												else if(hpnm.nilai_mata_avd==2.33)
												{
													cout<<"\t C+";
												}
												else if(hpnm.nilai_mata_avd==2.00)
												{
													cout<<"\t C";
												}
												else if(hpnm.nilai_mata_avd==1.67)
												{
													cout<<"\t C-";
												}
												else if(hpnm.nilai_mata_avd==1.33)
												{
													cout<<"\t D+";
												}
												else if(hpnm.nilai_mata_avd==1.00)
												{
													cout<<"\t D";
												}
												else if(hpnm.nilai_mata_avd==0.67)
												{
													cout<<"\t E";
												}
												else if(hpnm.nilai_mata_avd==0.33)
												{
													cout<<"\t E-";
												}
												else if(hpnm.nilai_mata_avd==0.00)
												{
													cout<<"\t F";
												}


												cout<<"\t     "<<hpnm.nilai_kredit_avd<<endl;
												cout<<"==============================================================================================="<<endl;

												cout<<endl;
												cout<<"PNM"<<"\t:"<<setprecision(2)<<hpnm.jum_sem5<<endl;
												cout<<"HPNM"<<"\t:"<<setprecision(2)<<hpnm.totalhpnm<<endl;
												cout<<endl;

												if((hpnm.totalhpnm>=2.00)&&(hpnm.totalhpnm<=4.00))
												{
													cout<<"RESULT"<<"\t:"<<"\t"<<"GOOD POSITION";
												}
												else if((hpnm.totalhpnm>=1.60)&&(hpnm.totalhpnm<=2.00))
												{
													cout<<"RESULT"<<"\t:"<<"\t"<<"CONDITIONAL POSITION";
												}
												else
												{
													cout<<"RESULT"<<"\t:"<<"\t"<<"REPEAT SEMESTER";
												}
												cout<<endl<<endl;

												cout<<"STATUS"<<"\t:"<<"\t\t\t\t\tABDUL GAFFAR BIN ZAKARIA"<<endl;
												cout<<"1 - FAILED FIRST TIME"<<"\t\t\t\tDEPT'S CHIEF.TECH.INFORMATION & COMMUNICATION "<<endl;
												cout<<"2 - FAILED SECOND TIME"<<"\t\t\t\tb.p DIRECTOR"<<endl;
												cout<<"3 - FAILED THIRD TIME"<<"\t\t\t\tPOLITEKNIK SULTAN MIZAN ZAINAL ABIDIN"<<endl;
												cout<<endl;

flagsalah21:
												cout<<"\t\tYou want continue use Menu Kira HPNM (Y/N)?: ";cin>>menupengguna.guna_nilai;
												if(menupengguna.guna_nilai=='Y'||menupengguna.guna_nilai=='y')
												{
													system("cls");
													goto flagmenupro1;
												}
												else if(menupengguna.guna_nilai=='N'||menupengguna.guna_nilai=='n')
												{
													system("cls");
													goto menupro1;
												}
												else
												{
													cout<<endl<<endl;
													cout<<"\t\t\7Your Entry Is Wrong"<<endl<<endl;
													goto flagsalah21;
												}

												}

												break;
											}
										case 4:
											{
												system("cls");
												goto menupro1;
												break;
											}
										default:
											{
												system("cls");
												cout<<"\n\t\t\t\7WRONG INPUT"<<endl<<endl;
												goto flagmenukirahpnm1;
											}
										}

									break;
								}

							case 3:
								{

									goto menupro1;
									break;
								}
							default:
								{
									system("cls");
									cout<<"\n\t\t\t\7WRONG INPUT"<<endl<<endl;
									goto flagmenupro1;
								}
							}
							break;
						}
					
					case 3:
						{
							goto flag2;
							break;
						}

					default:
						{
							system("cls");
							cout<<"\n\t\t\t\7WRONG INPUT "<<endl<<endl;
							goto menupro1;
						}
					}


						//akhir 
						break;
					}
				
				case 3:
					{

flag2:
					
					system("cls");
					cout<<"\t\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
					cout<<"\t\t|                   TERIMA KASIH DAUN KELADI                   |"<<endl;
					cout<<"\t\t|               ADA MASA KAMI BUAT ADVANCE LAGI                |"<<endl;
					cout<<"\t\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
					cout<<"\t\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
					cout<<"\t\t|                   DAUN SIRIH DAUN SELASIH                    |"<<endl;
					cout<<"\t\t|                     SEKIAN TERIMA KASIH                      |"<<endl;
					cout<<"\t\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl<<endl;
					cout<<"\n\t\t\t\tTEKAN ENTER...\n"<<endl;
					getch();
					system("start jasabonda.exe");
					system("exit");
					break;
					}

				default:
					{
					system("cls");
					cout<<"\n\t\t\t\t\7SALAH INPUT"<<endl<<endl;
					goto flag1;

amaran:
					system("cls");
					cout<<"\t\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
					cout<<"\t\t|                   WARNING!!!      ALERT!!!                   |"<<endl;
					cout<<"\t\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|"<<endl;
					cout<<"\n\t\t\t\tAMARAN!!!ADA PENCEROBOH!!!\7\7\7\n"<<endl;
					cout<<"\n\t\t\t\tTEKAN ENTER...\n"<<endl;
					getch();
					system("exit");
					}
				}
}

This post has been edited by smohd: 23 October 2011 - 08:13 AM
Reason for edit:: Please use [code] tags when posting codes


Is This A Good Question/Topic? 0
  • +

Replies To: How can i convert this C++ code to java

#2 Sheph  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 432
  • View blog
  • Posts: 1,020
  • Joined: 12-October 11

Re: How can i convert this C++ code to java

Posted 23 October 2011 - 12:22 AM

That is a ridiculous amount of code. I doubt anybody here is going to read that, not even counting the fact that you didn't put it in [code] tags. I don't know of any way to convert code from c++ to java except by hand, so if you want to know java syntax for c++ commands I can help you.

1) cout<<" "; is equivalent to: System.out.print(" "); or System.out.println(" ");

2) cin is a different story. You can look up the Scanner class in java.util
Was This Post Helpful? 1
  • +
  • -

#3 lnc12  Icon User is offline

  • D.I.C Regular

Reputation: 1
  • View blog
  • Posts: 268
  • Joined: 21-May 08

Re: How can i convert this C++ code to java

Posted 23 October 2011 - 01:44 AM

Yes next time put it in to a code block.
Otherwise some of my mates has used this program:
http://www.tangibles...CFUcj3godyX7skw
May I ask why you need to convert it to JAVA ?

Anyways if you know C++ it is not hard to learn java syntax
Was This Post Helpful? 0
  • +
  • -

#4 azuma kazuma  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 22-October 11

Re: How can i convert this C++ code to java

Posted 23 October 2011 - 08:05 AM

I HAVE CONVERT THE CODE BUT WITH ERROR, ANY HELP?
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author green hat
 */
import java.io.*;

public class GlobalMembersCpp1 {

    public static final int saiz = 50;
    public static pengguna menupengguna = new pengguna();
    public static kirahpnm hpnm = new kirahpnm();

    public static void Main() {

        int count = 0;
        int i = 0;
        Panduan pan = new Panduan();
        system("title MINI PROJEK - SISTEM KEPUTUSAN PENILAIAN AKHIR SEMESTER PELAJAR PSMZA 2009");

        System.out.print("\t                                     QQ                                     ");
        System.out.print("\n");
        System.out.print("\t                                   QQQQ,                                    ");
        System.out.print("\n");
        System.out.print("\t                                 ,QJLQQQ.                                   ");
        System.out.print("\n");
        System.out.print("\t                                .Q .QS,UQ.                                  ");
        System.out.print("\n");
        System.out.print("\t                               .QQ JQL ,QQ:                                 ");
        System.out.print("\n");
        System.out.print("\t                              :QQQS 1QQQQQQ7                                ");
        System.out.print("\n");
        System.out.print("\t                             .QQQQQQhRQQRQQQ:                               ");
        System.out.print("\n");
        System.out.print("\t                            rhj7rrr7L7rrrr7JPr                              ");
        System.out.print("\n");
        System.out.print("\t                      ,,,, 7QZpPPXXXXXXXXXP9ZQ7 ,,,                         ");
        System.out.print("\n");
        System.out.print("\t                     .::::fQQQQQQQQQQQQQQQQQQQQF.:::.                       ");
        System.out.print("\n");
        System.out.print("\t                   ,.:::.XQQRRRRRRRRRRRRRRRRRRQQ9..::.,                     ");
        System.out.print("\n");
        System.out.print("\t                   ,..  2RPh112fffttttt2ffff11hSRh  ..,                     ");
        System.out.print("\n");
        System.out.print("\t                       SMPFf2Fh1tf12fF1tFFtf1Fh1FRP                         ");
        System.out.print("\n");
        System.out.print("\t                      QQQQQQQQQQQQQQQQQQQQQQQQQQQQQR                        ");
        System.out.print("\n");
        System.out.print("\t                    ,.  .  X    :J  .  i  7:   r:                           ");
        System.out.print("\n");
        System.out.print("\t                    Qi ,9  .  0:JL  M  F: ,QP  Y  Q, :.                     ");
        System.out.print("\n");
        System.out.print("\t                   QQ. .Q  Qp  .Zh  Q  Zr :Q  LQU..  LQ                     ");
        System.out.print("\n");
        System.out.print("\t                 ,QQQ. .E  7.r0  .  Q  9i :r  QQ  Q, .QQ                    ");
        System.out.print("\n");
        System.out.print("\t                .QQQQ.  .  D    :7  D  S: ,    i  ,  .QQQ,                  ");
        System.out.print("\n");
        System.out.print("\t               cQQQQQ: ,QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQr                 ");
        System.out.print("\n");
        System.out.print("\t              :QQDbEQ.  QQRDMQQQRRRRRRQMRRRRQQQRRQQRQMbbZQQ.				   ");
        System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
        flag1:
        System.out.print("\t|------------------------------------------------------------------------------|");
        System.out.print("\n");
        System.out.print("\t|            Sila Pilih Bahasa Anda / Please Select Your Language              |");
        System.out.print("\n");
        System.out.print("\t|------------------------------------------------------------------------------|");
        System.out.print("\n");
        System.out.print("\t|[1] - Bahasa Melayu							       |");
        System.out.print("\n");
        System.out.print("\t|[2] - Bahasa Inggeris							       |");
        System.out.print("\n");
        System.out.print("\t|[3] - Tamat                                                                   |");
        System.out.print("\n");
        System.out.print("\t|------------------------------------------------------------------------------|");
        System.out.print("\n");
        System.out.print("\t|                                                                              |");
        System.out.print("\n");
        System.out.print("\t|------------------------------------------------------------------------------|");
        System.out.print("\n");
        System.out.print("\n\tMasukkan pilihan anda :");
        cin>>menupengguna.pilihan;

        switch (menupengguna.pilihan) {
            case 1: {
                system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                menupro:
                //aturcara dalam BM
                System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                System.out.print("\n");
                System.out.print("\t|                            MENU PENGGUNA                                     |");
                System.out.print("\n");
                System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                System.out.print("\n");
                System.out.print("\t|[1] - Manual Pengguna							       |");
                System.out.print("\n");
                System.out.print("\t|[2] - Masuk Ke Dalam Program						       |");
                System.out.print("\n");
                System.out.print("\t|[3] - Tamat                                                                   |");
                System.out.print("\n");
                System.out.print("\n\tMasukkan pilihan anda :");
                cin>>menupengguna.menu;
                system("cls");

                switch (menupengguna.menu) {
                    case 1: {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        flagmanual:
                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\t|                            MANUAL PENGGUNA                                   |");
                        System.out.print("\n");
                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        //manual pengguna - menerangkan tentang cara pengguna aplikasi ini
                        System.out.print("\tPENGENALAN");
                        System.out.print("\n");
                        System.out.print("\tPada menu permulaan, pengguna diminta untuk memilih bahasa yang dikehendaki.");
                        System.out.print("\n");
                        System.out.print("\tSekiranya pengguna memilih Bahasa Melayu, pengguna akan memasukki Menu Pengguna");
                        System.out.print("\n");
                        System.out.print("\tdalam bahasa melayu dan jika pengguna memilih Bahasa Inggeris, pengguna akan");
                        System.out.print("\n");
                        System.out.print("\tmemasukki User Menu dalam bahasa inggeris.");
                        System.out.print("\n");

                        System.out.print("\n\t\t\tTEKAN ENTER...\n");
                        System.out.print("\n");
                        getch();
                        system("cls");
                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\t|                                MENU PENGGUNA                                 |");
                        System.out.print("\n");
                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\tDalam Menu ini, terdapat tiga pilihan yang boleh digunakan oleh pengguna.");
                        System.out.print("\n");
                        System.out.print("\tJika pengguna memilih menu pengguna, pengguna akan didedahkan kepada cara - cara");
                        System.out.print("\n");
                        System.out.print("\tuntuk menggunakan program ini.Jika pengguna memilih untuk Masuk Ke Dalam Program,");
                        System.out.print("\n");
                        System.out.print("\tpengguna akan diberi pilihan untuk menggunakan Panduan Nilai Mata dan Menu Pengiraan ");
                        System.out.print("\n");
                        System.out.print("\tHPNM Semester 5.Dalam menu ini juga, disediakan menu keluar untuk memudahkan pengguna");
                        System.out.print("\n");
                        System.out.print("\tmenamatkan program.");
                        System.out.print("\n");

                        System.out.print("\n\t\t\tTEKAN ENTER...\n");
                        System.out.print("\n");
                        getch();
                        system("cls");

                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\t|                                LOGIN USER                                    |");
                        System.out.print("\n");
                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\tLogin User ini akan meminta pengguna untuk memasukkan nama penuh, number matrik");
                        System.out.print("\n");
                        System.out.print("\tdan number kad pengenalan mereka untuk membolehkan mereka memasukki Menu Program");
                        System.out.print("\n");
                        System.out.print("\tDisini telah ditingkatkan keselamatannya, dimana pengguna perlu memasukkan nombor");
                        System.out.print("\n");
                        System.out.print("\tpendaftaran mereka yang betul dan nombor kat pengenalan mereka. Sekiranya masukkan");
                        System.out.print("\n");
                        System.out.print("\tmereka tidak betul sebanyak tiga kali, pengguna akan dibawa keluar daripada");
                        System.out.print("\n");
                        System.out.print("\taturcara/program ini secara automatik.Sekiranya butiran maklumat lengkap, ");
                        System.out.print("\n");
                        System.out.print("\tpengguna akan dibawa ke Menu Program.");
                        System.out.print("\n");
                        System.out.print("\n\t\t\tTEKAN ENTER...\n");
                        System.out.print("\n");
                        getch();
                        system("cls");

                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\t|                              MENU PROGRAM                                    |");
                        System.out.print("\n");
                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\tDalam menu ini, pengguna dapat guna Panduan Nilai Mata dimana pengguna dapat");
                        System.out.print("\n");
                        System.out.print("\tmemasukkan markah ujian yang diperolehi mereka untuk mendapatkan Nilai Mata yang");
                        System.out.print("\n");
                        System.out.print("\tperlu mereka masukkan semasa untuk mengira HPNM mereka nanti. Panduan Nilai Mata");
                        System.out.print("\n");
                        System.out.print("\tini juga akan memaparkan gred bagi setiap kemasukkan markah mereka. Manakala menu");
                        System.out.print("\n");
                        System.out.print("\tKira HPNM pula akan mengira markah pengguna semasa Semester 5 dan sebelumnya.");
                        System.out.print("\n");
                        System.out.print("\tMenu Keluar akan membawa pengguna ke menu sebelumnya.");
                        System.out.print("\n");

                        System.out.print("\n\t\t\tTEKAN ENTER...\n");
                        System.out.print("\n");
                        getch();
                        system("cls");


                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\t|                            PANDUAN NILAI MATA                                |");
                        System.out.print("\n");
                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\tMenu ini akan membenarkan pengguna untuk memasukkan nilai markah yang mereka");
                        System.out.print("\n");
                        System.out.print("\tperolehi dan menu ini akan memberi nilai mata kepada pengguna beserta gred bagi");
                        System.out.print("\n");
                        System.out.print("\tnilai mata yang mereka perolehi. Menu ini tidak akan menerima masukkan nilai");
                        System.out.print("\n");
                        System.out.print("\tmarkah yang melebihi 100 dan tidak akan menerima masukkan yang kurang daripada 0.");
                        System.out.print("\n");
                        System.out.print("\n\t\t\tTEKAN ENTER...\n");
                        System.out.print("\n");
                        getch();
                        system("cls");


                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\t|                            KIRA PNM SEM 5                                    |");
                        System.out.print("\n");
                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\tMenu ini akan meminta pengguna memasukkan nilai mata yang diperolehi dalam subjek");
                        System.out.print("\n");
                        System.out.print("\tyang diambil.Selepas pengguna memasukkan semua nilai mata yang telah diambil,");
                        System.out.print("\n");
                        System.out.print("\tpengguna akan dibawa ke pada Menu Pengiraan HPNM.Di mana menu yang terdapat");
                        System.out.print("\n");
                        System.out.print("\tdidalamnya,adalah Kira PNM 5,Kemaskini Data, Cetak Slip dan Keluar.");
                        System.out.print("\n");
                        System.out.print("\tMenu Kira PNM 5 akan mengira masukkan nilai mata yang baru dimasukkan tadi.");
                        System.out.print("\n");
                        System.out.print("\tManakala, menu kemaskini data akan membenarkan pengguna untuk mengubah nilai mata");
                        System.out.print("\n");
                        System.out.print("\tyang dimasukkan tadi. Menu Cetak Slip akan mencetak keseluruhan keputusan peperiksaan");
                        System.out.print("\n");
                        System.out.print("\takhir semester 5. Dalam Menu ini, pengguna perlu mengira markah sebelum dapat");
                        System.out.print("\n");
                        System.out.print("\tmengemaskini data dan membuat cetakkan slip.Sekiranya pengguna ingin membuat");
                        System.out.print("\n");
                        System.out.print("\tcetakan slip atau kemaskini data, satu amaran akan keluar.");
                        System.out.print("\n");

                        System.out.print("\n\t\t\tTEKAN ENTER...\n");
                        System.out.print("\n");
                        getch();

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        flagmanualsalah:
                        System.out.print("\t\tAnda ingin meneruskan mengunakan Manual Pengguna (Y/N)?: ");
                        cin>>menupengguna.guna_nilai;
                        if (menupengguna.guna_nilai == 'Y' || menupengguna.guna_nilai == 'y') {
                            system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                            goto
                            flagmanual;
                        } else if (menupengguna.guna_nilai == 'N' || menupengguna.guna_nilai == 'n') {
                            system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                            goto
                            menupro;
                        } else {
                            System.out.print("\n");
                            System.out.print("\n");
                            System.out.print("\t\t\7Masukkan Anda Salah");
                            System.out.print("\n");
                            System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                            goto
                            flagmanualsalah;
                        }

                        break;
                    }

                    case 2: {
                        int masa_t = 0;
                        int now;
                        now = time(null);

                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\t|\t\t\4Tarikh dan Masa semasa: ");
                        System.out.print(ctime(now));
                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\t|                                 LOGIN USER                                   |");
                        System.out.print("\n");
                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\tSila Masukkan Nama Penuh Anda :");
                        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
                        menupengguna.nama = in.readLine();
                        menupengguna.nama = in.readLine();


//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        flagnomatrik:
                        count++;
                        if (count <= 3) {
                            System.out.print("\tSila Masukkan No Matrik anda :");
                            cin>>menupengguna.no_matrik;

                            if (menupengguna.no_matrik.length() == 11) {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                flagnoic;
                            } else if (menupengguna.no_matrik.length() > 11) {
                                System.out.print("\7\n\tSila semak No Matrik Anda!");
                                System.out.print("\n");
                                System.out.print("\tPercubaan Yang Ke : ");
                                System.out.print(count);
                                System.out.print("\n");
                                System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                flagnomatrik;
                            } else {
                                System.out.print("\7\n\tMasukkan Anda salah");
                                System.out.print("\n");
                                System.out.print("\tPercubaan Yang Ke : ");
                                System.out.print(count);
                                System.out.print("\n");
                                System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                flagnomatrik;
                            }
                        } else {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                            goto
                            amaran;
                        }

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        flagnoic:
                        i++;
                        if (i <= 3) {
                            System.out.print("\tSila Masukkan No Kad Pengenalan anda :");
                            cin>>menupengguna.noic;

                            if (menupengguna.noic.length() == 12) {
                                System.out.print("\n\t\t\tTEKAN ENTER...\n");
                                System.out.print("\n");
                                getch();
                                system("cls");

                            } else if (menupengguna.noic.length() > 12) {
                                System.out.print("\7\n\tSila semak No Kad Pengenalan Anda!");
                                System.out.print("\n");
                                System.out.print("\tPercubaan Yang Ke : ");
                                System.out.print(i);
                                System.out.print("\n");
                                System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                flagnoic;
                            } else {
                                System.out.print("\7\n\tMasukkan Anda salah");
                                System.out.print("\n");
                                System.out.print("\tPercubaan Yang Ke : ");
                                System.out.print(i);
                                System.out.print("\n");
                                System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                flagnoic;
                            }
                        } else {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                            goto
                            amaran;
                        }



//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        flagmenupro:
                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\t|                            MENU PROGRAM                                      |");
                        System.out.print("\n");
                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.print("\n");
                        System.out.print("\t|[1] - Panduan Nilai Mata						       |");
                        System.out.print("\n");
                        System.out.print("\t|[2] - Kira HPNM							       |");
                        System.out.print("\n");
                        System.out.print("\t|[3] - Keluar								       |");
                        System.out.print("\n");
                        System.out.print("\n\tMasukkan pilihan anda :");
                        cin>>menupengguna.menupro;
                        system("cls");
                        switch (menupengguna.menupro) {
                            case 1: {
                                //pengguna uji markah mereka untuk dapatkan gred dan nilai mata mereka
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                gmarkah:
                                System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                System.out.print("\n");
                                System.out.print("\t|                            PANDUAN NILAI MATA                                |");
                                System.out.print("\n");
                                System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                System.out.print("\n");

                                System.out.print("\t\tSila masukkan markah subjek anda:");
                                cin>>menupengguna.markah;

                                if (menupengguna.markah > 100 || menupengguna.markah < 0) {
                                    system("cls");
                                    System.out.print("\n\t\t\7Harap Maaf!Anda hanya dibenarkan masuk nilai daripada 0 - 100");
                                    System.out.print("\n");
                                    System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    goto
                                    gmarkah;
                                } else if (menupengguna.markah >= 80 && menupengguna.markah <= 100) {
                                    System.out.print("\t\tGred: A");
                                    System.out.print("\n");
                                    System.out.print("\t\tNilai Mata: 4.00");
                                    System.out.print("\n");
                                } else if (menupengguna.markah >= 75 && menupengguna.markah <= 79) {
                                    System.out.print("\t\tGred: A-");
                                    System.out.print("\n");
                                    System.out.print("\t\tNilai Mata: 3.67");
                                    System.out.print("\n");
                                } else if (menupengguna.markah >= 70 && menupengguna.markah <= 74) {
                                    System.out.print("\t\tGred: B+");
                                    System.out.print("\n");
                                    System.out.print("\t\tNilai Mata: 3.33");
                                    System.out.print("\n");
                                } else if (menupengguna.markah >= 65 && menupengguna.markah <= 69) {
                                    System.out.print("\t\tGred: B");
                                    System.out.print("\n");
                                    System.out.print("\t\tNilai Mata: 3.00");
                                    System.out.print("\n");
                                } else if (menupengguna.markah >= 60 && menupengguna.markah <= 64) {
                                    System.out.print("\t\tGred: B-");
                                    System.out.print("\n");
                                    System.out.print("\t\tNilai Mata: 2.67");
                                    System.out.print("\n");
                                } else if (menupengguna.markah >= 55 && menupengguna.markah <= 59) {
                                    System.out.print("\t\tGred: C+");
                                    System.out.print("\n");
                                    System.out.print("\t\tNilai Mata: 2.33");
                                    System.out.print("\n");
                                } else if (menupengguna.markah >= 50 && menupengguna.markah <= 54) {
                                    System.out.print("\t\tGred: C");
                                    System.out.print("\n");
                                    System.out.print("\t\tNilai Mata: 2.00");
                                    System.out.print("\n");
                                } else if (menupengguna.markah >= 47 && menupengguna.markah <= 49) {
                                    System.out.print("\t\tGred: C-");
                                    System.out.print("\n");
                                    System.out.print("\t\tNilai Mata: 1.67");
                                    System.out.print("\n");
                                } else if (menupengguna.markah >= 44 && menupengguna.markah <= 46) {
                                    System.out.print("\t\tGred: D+");
                                    System.out.print("\n");
                                    System.out.print("\t\tNilai Mata: 1.33");
                                    System.out.print("\n");
                                } else if (menupengguna.markah >= 40 && menupengguna.markah <= 43) {
                                    System.out.print("\t\tGred: D");
                                    System.out.print("\n");
                                    System.out.print("\t\tNilai Mata: 1.00");
                                    System.out.print("\n");
                                } else if (menupengguna.markah >= 30 && menupengguna.markah <= 39) {
                                    System.out.print("\t\tGred: E");
                                    System.out.print("\n");
                                    System.out.print("\t\tNilai Mata: 0.67");
                                    System.out.print("\n");
                                } else if (menupengguna.markah >= 20 && menupengguna.markah <= 29) {
                                    System.out.print("\t\tGred: E-");
                                    System.out.print("\n");
                                    System.out.print("\t\tNilai Mata: 0.33");
                                    System.out.print("\n");
                                } else {
                                    System.out.print("\t\tGred: F");
                                    System.out.print("\n");
                                    System.out.print("\t\tNilai Mata: 0.00");
                                    System.out.print("\n");
                                }

                                System.out.print("\n\t\t\tTEKAN ENTER...\n");
                                System.out.print("\n");
                                getch();

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagsalah0:
                                System.out.print("\t\tAnda ingin meneruskan mengunakan Panduan Nilai Mata (Y/N)?: ");
                                cin>>menupengguna.guna_nilai;
                                if (menupengguna.guna_nilai == 'Y' || menupengguna.guna_nilai == 'y') {
                                    system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    goto
                                    gmarkah;
                                } else if (menupengguna.guna_nilai == 'N' || menupengguna.guna_nilai == 'n') {
                                    system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    goto
                                    flagmenupro;
                                } else {
                                    System.out.print("\n");
                                    System.out.print("\n");
                                    System.out.print("\t\t\7Masukkan Anda Salah");
                                    System.out.print("\n");
                                    System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    goto
                                    flagsalah0;
                                }

                                break;
                            }

                            case 2: {

                                //kira hpnm bagi sem 5 dan sem sebelumnya
                                System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                System.out.print("\n");
                                System.out.print("\t|                            KIRA PNM SEM 5                                    |");
                                System.out.print("\n");
                                System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                System.out.print("\n");


                                System.out.print("\tNama Pelajar: ");
                                System.out.print(menupengguna.nama);
                                System.out.print("\n");
                                System.out.print("\tNo Matrik Pelajar: ");
                                System.out.print(menupengguna.no_matrik);
                                System.out.print("\n");
                                System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagkemaskini:
                                System.out.print("\tSila Masukkan Nilai Mata Yang Diperolehi");
                                System.out.print("\n");
                                System.out.print("\tBagi subjek berikut:");
                                System.out.print("\n");
                                System.out.print("\n");

                                //kira bi
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagnilaimata_eng:
                                System.out.print("\tENGLISH FOR TECHNOLOGY PURPOSE 4: ");
                                System.out.print("\t");
                                cin>>hpnm.nilai_mata_eng;

                                /*	if(hpnm.nilai_mata_eng>=4.01)
                                {
                                cout<<endl;
                                cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
                                cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
                                cout<<endl;
                                goto flagnilaimata_eng;
                                }*/

                                if ((hpnm.nilai_mata_eng == 4.00) || (hpnm.nilai_mata_eng == 3.67) || (hpnm.nilai_mata_eng == 3.33) || (hpnm.nilai_mata_eng == 3.00) || (hpnm.nilai_mata_eng == 2.67) || (hpnm.nilai_mata_eng == 2.33) || (hpnm.nilai_mata_eng == 2.00) || (hpnm.nilai_mata_eng == 1.67) || (hpnm.nilai_mata_eng == 1.33) || (hpnm.nilai_mata_eng == 1.00) || (hpnm.nilai_mata_eng == 0.67) || (hpnm.nilai_mata_eng == 0.33) || (hpnm.nilai_mata_eng == 0.00)) {
                                    hpnm.nilai_kredit_eng = (1.50) * (hpnm.nilai_mata_eng);

                                } else {
                                    System.out.print("\n");
                                    System.out.print("\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah.");
                                    System.out.print("\n");
                                    System.out.print("\tSila guna Panduan Nilai Mata sebagai rujuk.");
                                    System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    error_eng:
                                    System.out.print("\tAnda ingin menggunakan Panduan Nilai Mata sebagai rujukan?(Y/N): ");
                                    cin>>hpnm.panduan;
                                    if (hpnm.panduan == 'Y' || hpnm.panduan == 'y') {
                                        System.out.print("\n");
                                        pan.PNilai();
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_eng;
                                    } else if (hpnm.panduan == 'N' || hpnm.panduan == 'n') {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_eng;
                                        System.out.print("\n");
                                    } else {
                                        System.out.print("\n");
                                        System.out.print("\n");
                                        System.out.print("\t\t\7Masukkan Anda Salah");
                                        System.out.print("\n");
                                        System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        error_eng;
                                    }
                                }

                                //kira algo
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagnilaimata_algo:
                                System.out.print("\tALGORITMA & STRUKTUR DATA: ");
                                System.out.print("\t\t");
                                cin>>hpnm.nilai_mata_algo;

                                /*if(hpnm.nilai_mata_algo>=4.01)
                                {
                                cout<<endl;
                                cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
                                cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
                                cout<<endl;
                                goto flagnilaimata_algo;
                                }*/

                                if ((hpnm.nilai_mata_algo == 4.00) || (hpnm.nilai_mata_algo == 3.67) || (hpnm.nilai_mata_algo == 3.33) || (hpnm.nilai_mata_algo == 3.00) || (hpnm.nilai_mata_algo == 2.67) || (hpnm.nilai_mata_algo == 2.33) || (hpnm.nilai_mata_algo == 2.00) || (hpnm.nilai_mata_algo == 1.67) || (hpnm.nilai_mata_algo == 1.33) || (hpnm.nilai_mata_algo == 1.00) || (hpnm.nilai_mata_algo == 0.67) || (hpnm.nilai_mata_algo == 0.33) || (hpnm.nilai_mata_algo == 0.00)) {
                                    hpnm.nilai_kredit_algo = (3.00) * (hpnm.nilai_mata_algo);

                                } else {
                                    System.out.print("\n");
                                    System.out.print("\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah.");
                                    System.out.print("\n");
                                    System.out.print("\tSila guna Panduan Nilai Mata sebagai rujuk.");
                                    System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    error_algo:
                                    System.out.print("\tAnda ingin menggunakan Panduan Nilai Mata sebagai rujukan?(Y/N): ");
                                    cin>>hpnm.panduan;
                                    if (hpnm.panduan == 'Y' || hpnm.panduan == 'y') {
                                        System.out.print("\n");
                                        pan.PNilai();
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_algo;

                                    } else if (hpnm.panduan == 'N' || hpnm.panduan == 'n') {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_algo;
                                        System.out.print("\n");
                                    } else {
                                        System.out.print("\n");
                                        System.out.print("\n");
                                        System.out.print("\t\t\7Masukkan Anda Salah");
                                        System.out.print("\n");
                                        System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        error_algo;
                                    }
                                }
                                //kira java

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagnilaimata_java:
                                System.out.print("\tPENGATURCARAAN JAVA: ");
                                System.out.print("\t\t\t");
                                cin>>hpnm.nilai_mata_java;

                                /*if(hpnm.nilai_mata_java>=4.01)
                                {
                                cout<<endl;
                                cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
                                cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
                                cout<<endl;
                                goto flagnilaimata_java;
                                }*/

                                if ((hpnm.nilai_mata_java == 4.00) || (hpnm.nilai_mata_java == 3.67) || (hpnm.nilai_mata_java == 3.33) || (hpnm.nilai_mata_java == 3.00) || (hpnm.nilai_mata_java == 2.67) || (hpnm.nilai_mata_java == 2.33) || (hpnm.nilai_mata_java == 2.00) || (hpnm.nilai_mata_java == 1.67) || (hpnm.nilai_mata_java == 1.33) || (hpnm.nilai_mata_java == 1.00) || (hpnm.nilai_mata_java == 0.67) || (hpnm.nilai_mata_java == 0.33) || (hpnm.nilai_mata_java == 0.00)) {
                                    hpnm.nilai_kredit_java = (4.00) * (hpnm.nilai_mata_java);

                                } else {
                                    System.out.print("\n");
                                    System.out.print("\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah.");
                                    System.out.print("\n");
                                    System.out.print("\tSila guna Panduan Nilai Mata sebagai rujuk.");
                                    System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    error_java:
                                    System.out.print("\tAnda ingin menggunakan Panduan Nilai Mata sebagai rujukan?(Y/N): ");
                                    cin>>hpnm.panduan;
                                    if (hpnm.panduan == 'Y' || hpnm.panduan == 'y') {
                                        System.out.print("\n");
                                        pan.PNilai();
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_java;

                                    } else if (hpnm.panduan == 'N' || hpnm.panduan == 'n') {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_java;
                                        System.out.print("\n");
                                    } else {
                                        System.out.print("\n");
                                        System.out.print("\n");
                                        System.out.print("\t\t\7Masukkan Anda Salah");
                                        System.out.print("\n");
                                        System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        error_java;
                                    }
                                }

                                //kira sad
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagnilaimata_sad:
                                System.out.print("\tSISTEM ANALISIS & REKABENTUK: ");
                                System.out.print("\t\t");
                                cin>>hpnm.nilai_mata_sad;

                                /*if(hpnm.nilai_mata_sad>=4.01)
                                {
                                cout<<endl;
                                cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
                                cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
                                cout<<endl;
                                goto flagnilaimata_sad;
                                }*/

                                if ((hpnm.nilai_mata_sad == 4.00) || (hpnm.nilai_mata_sad == 3.67) || (hpnm.nilai_mata_sad == 3.33) || (hpnm.nilai_mata_sad == 3.00) || (hpnm.nilai_mata_sad == 2.67) || (hpnm.nilai_mata_sad == 2.33) || (hpnm.nilai_mata_sad == 2.00) || (hpnm.nilai_mata_sad == 1.67) || (hpnm.nilai_mata_sad == 1.33) || (hpnm.nilai_mata_sad == 1.00) || (hpnm.nilai_mata_sad == 0.67) || (hpnm.nilai_mata_sad == 0.33) || (hpnm.nilai_mata_sad == 0.00)) {
                                    hpnm.nilai_kredit_sad = (2.00) * (hpnm.nilai_mata_sad);

                                } else {
                                    System.out.print("\n");
                                    System.out.print("\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah.");
                                    System.out.print("\n");
                                    System.out.print("\tSila guna Panduan Nilai Mata sebagai rujuk.");
                                    System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    error_sad:
                                    System.out.print("\tAnda ingin menggunakan Panduan Nilai Mata sebagai rujukan?(Y/N): ");
                                    cin>>hpnm.panduan;
                                    if (hpnm.panduan == 'Y' || hpnm.panduan == 'y') {
                                        System.out.print("\n");
                                        pan.PNilai();
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_sad;

                                    } else if (hpnm.panduan == 'N' || hpnm.panduan == 'n') {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_sad;
                                        System.out.print("\n");
                                    } else {
                                        System.out.print("\n");
                                        System.out.print("\n");
                                        System.out.print("\t\t\7Masukkan Anda Salah");
                                        System.out.print("\n");
                                        System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        error_sad;
                                    }
                                }

                                //kira db

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagnilaimata_db:
                                System.out.print("\tPANGKALAN DATA: ");
                                System.out.print("\t\t\t");
                                cin>>hpnm.nilai_mata_db;

                                /*if(hpnm.nilai_mata_db>=4.01)
                                {
                                cout<<endl;
                                cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
                                cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
                                cout<<endl;
                                goto flagnilaimata_db;
                                }*/

                                if ((hpnm.nilai_mata_db == 4.00) || (hpnm.nilai_mata_db == 3.67) || (hpnm.nilai_mata_db == 3.33) || (hpnm.nilai_mata_db == 3.00) || (hpnm.nilai_mata_db == 2.67) || (hpnm.nilai_mata_db == 2.33) || (hpnm.nilai_mata_db == 2.00) || (hpnm.nilai_mata_db == 1.67) || (hpnm.nilai_mata_db == 1.33) || (hpnm.nilai_mata_db == 1.00) || (hpnm.nilai_mata_db == 0.67) || (hpnm.nilai_mata_db == 0.33) || (hpnm.nilai_mata_db == 0.00)) {
                                    hpnm.nilai_kredit_db = (3.00) * (hpnm.nilai_mata_db);

                                } else {
                                    System.out.print("\n");
                                    System.out.print("\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah.");
                                    System.out.print("\n");
                                    System.out.print("\tSila guna Panduan Nilai Mata sebagai rujuk.");
                                    System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    error_db:
                                    System.out.print("\tAnda ingin menggunakan Panduan Nilai Mata sebagai rujukan?(Y/N): ");
                                    cin>>hpnm.panduan;
                                    if (hpnm.panduan == 'Y' || hpnm.panduan == 'y') {
                                        System.out.print("\n");
                                        pan.PNilai();
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_db;

                                    } else if (hpnm.panduan == 'N' || hpnm.panduan == 'n') {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_db;
                                        System.out.print("\n");
                                    } else {
                                        System.out.print("\n");
                                        System.out.print("\n");
                                        System.out.print("\t\t\7Masukkan Anda Salah");
                                        System.out.print("\n");
                                        System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        error_db;
                                    }
                                }


                                //kira avd
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagnilaimata_avd:
                                System.out.print("\tAUDIO VIDEO DIGITAL: ");
                                System.out.print("\t\t\t");
                                cin>>hpnm.nilai_mata_avd;

                                /*if(hpnm.nilai_mata_avd>=4.01)
                                {
                                cout<<endl;
                                cout<<"\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah."<<endl;
                                cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
                                cout<<endl;
                                goto flagnilaimata_avd;
                                }*/

                                if ((hpnm.nilai_mata_avd == 4.00) || (hpnm.nilai_mata_avd == 3.67) || (hpnm.nilai_mata_avd == 3.33) || (hpnm.nilai_mata_avd == 3.00) || (hpnm.nilai_mata_avd == 2.67) || (hpnm.nilai_mata_avd == 2.33) || (hpnm.nilai_mata_avd == 2.00) || (hpnm.nilai_mata_avd == 1.67) || (hpnm.nilai_mata_avd == 1.33) || (hpnm.nilai_mata_avd == 1.00) || (hpnm.nilai_mata_avd == 0.67) || (hpnm.nilai_mata_avd == 0.33) || (hpnm.nilai_mata_avd == 0.00)) {
                                    hpnm.nilai_kredit_avd = (2.00) * (hpnm.nilai_mata_avd);

                                } else {
                                    System.out.print("\n");
                                    System.out.print("\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah.");
                                    System.out.print("\n");
                                    System.out.print("\tSila guna Panduan Nilai Mata sebagai rujuk.");
                                    System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    error_avd:
                                    System.out.print("\tAnda ingin menggunakan Panduan Nilai Mata sebagai rujukan?(Y/N): ");
                                    cin>>hpnm.panduan;
                                    if (hpnm.panduan == 'Y' || hpnm.panduan == 'y') {
                                        System.out.print("\n");
                                        pan.PNilai();
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_avd;

                                    } else if (hpnm.panduan == 'N' || hpnm.panduan == 'n') {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_avd;
                                        System.out.print("\n");
                                    } else {
                                        System.out.print("\n");
                                        System.out.print("\n");
                                        System.out.print("\t\t\7Masukkan Anda Salah");
                                        System.out.print("\n");
                                        System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        error_avd;
                                    }
                                }

                                System.out.print("\n");

                                System.out.print("\n\t\t\tTEKAN ENTER...");
                                System.out.print("\n");
                                getch();
                                system("cls");

                                System.out.print("\n");
                                System.out.print("\n");

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagmenukirahpnm:
                                System.out.print("\t\t+++++++++++++++++++++++++MENU+++++++++++++++++++++++++");
                                System.out.print("\n");
                                System.out.print("\t\t|1.Kira PNM 5			   2.Kemaskini Data  |");
                                System.out.print("\n");
                                System.out.print("\t\t|3.Cetak Slip			   4.Keluar	     |");
                                System.out.print("\n");
                                System.out.print("\t\t++++++++++++++++++++++++++++++++++++++++++++++++++++++");
                                System.out.print("\n");
                                System.out.print("\n\t\tMasukkan pilihan anda :");
                                cin>>menupengguna.kira_hpnm;

                                switch (menupengguna.kira_hpnm) {
                                    case 1: {

                                        //kira hpnm

                                        system("cls");
                                        System.out.print("\n");
                                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                        System.out.print("\n");
                                        System.out.print("\t|                            KIRA PNM SEM 5                                    |");
                                        System.out.print("\n");
                                        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                        System.out.print("\n");
                                        System.out.print("\n");
                                        System.out.print("\t| KOD  ");
                                        System.out.print("| NAMA KURSUS ");
                                        System.out.print("\t\t");
                                        System.out.print("\t | NILAI MATA |");
                                        System.out.print("\t MATA KREDIT |");
                                        System.out.print("\n");
                                        System.out.print("\t  A4003 ");
                                        System.out.print(" ENGLISH FOR TECHNOLOGY PURPOSE 4 ");
                                        System.out.print("\t");
                                        System.out.printf("%.3d", hpnm.nilai_mata_eng);
                                        System.out.printf("%.3d", "\t     ");
                                        System.out.printf("%.3d", hpnm.nilai_kredit_eng);
                                        System.out.printf("%.3d", "\n");
                                        System.out.printf("%.3d", "\t  F4104 ");
                                        System.out.printf("%.3d", " ALGORITMA & STRUKTUR DATA       ");
                                        System.out.printf("%.3d", "\t");
                                        System.out.printf("%.3d", hpnm.nilai_mata_algo);
                                        System.out.printf("%.3d", "\t     ");
                                        System.out.printf("%.3d", hpnm.nilai_kredit_algo);
                                        System.out.printf("%.3d", "\n");
                                        System.out.printf("%.3d", "\t  F4105 ");
                                        System.out.printf("%.3d", " PENGATURCARAAN JAVA             ");
                                        System.out.printf("%.3d", "\t");
                                        System.out.printf("%.3d", hpnm.nilai_mata_java);
                                        System.out.printf("%.3d", "\t     ");
                                        System.out.printf("%.3d", hpnm.nilai_kredit_java);
                                        System.out.printf("%.3d", "\n");
                                        System.out.printf("%.3d", "\t  F4106 ");
                                        System.out.printf("%.3d", " SISTEM ANALISIS & REKABENTUK    ");
                                        System.out.printf("%.3d", "\t");
                                        System.out.printf("%.3d", hpnm.nilai_mata_sad);
                                        System.out.printf("%.3d", "\t     ");
                                        System.out.printf("%.3d", hpnm.nilai_kredit_sad);
                                        System.out.printf("%.3d", "\n");
                                        System.out.printf("%.3d", "\t  F4109 ");
                                        System.out.printf("%.3d", " PANGKALAN DATA                  ");
                                        System.out.printf("%.3d", "\t");
                                        System.out.printf("%.3d", hpnm.nilai_mata_db);
                                        System.out.printf("%.3d", "\t     ");
                                        System.out.printf("%.3d", hpnm.nilai_kredit_db);
                                        System.out.printf("%.3d", "\n");
                                        System.out.printf("%.3d", "\t  F4805 ");
                                        System.out.printf("%.3d", " AUDIO VIDEO DIGITAL             ");
                                        System.out.printf("%.3d", "\t");
                                        System.out.printf("%.3d", hpnm.nilai_mata_avd);
                                        System.out.printf("%.3d", "\t     ");
                                        System.out.printf("%.3d", hpnm.nilai_kredit_avd);
                                        System.out.printf("%.3d", "\n");
                                        System.out.printf("%.3d", "\n");


                                        hpnm.sem5 = hpnm.nilai_kredit_algo + hpnm.nilai_kredit_avd + hpnm.nilai_kredit_db + hpnm.nilai_kredit_eng + hpnm.nilai_kredit_java + hpnm.nilai_kredit_sad;

                                        hpnm.jum_sem5 = (hpnm.sem5) / (1.50 + 4.00 + 3.00 + 3.00 + 2.00 + 2.00);


                                        System.out.printf("%.3d", "\t\tPNM Sem Ini: ");
                                        System.out.printf("%.2d", hpnm.jum_sem5);
                                        System.out.printf("%.2d", "\n");

                                        System.out.printf("%.2d", "\n\t\t\tTEKAN ENTER...\n");
                                        System.out.printf("%.2d", "\n");
                                        getch();

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        flagsalah1:
                                        System.out.printf("%.2d", "\t\tAnda ingin kembali kepada menu sebelumnya?!(Y/N)?: ");
                                        cin>>menupengguna.guna_nilai;
                                        if (menupengguna.guna_nilai == 'Y' || menupengguna.guna_nilai == 'y') {
                                            system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            goto
                                            flagmenukirahpnm;
                                        } else if (menupengguna.guna_nilai == 'N' || menupengguna.guna_nilai == 'n') {
                                            system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            goto
                                            flagmenupro;
                                        } else {
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t\t\7Masukkan Anda Salah");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            goto
                                            flagsalah1;
                                        }

                                        break;
                                    }
                                    case 2: {

                                        if (hpnm.sem5 == 0) {
                                            system("cls");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t\t|========================================================|");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t\t\7|Harap Maaf!. Sila Buat Kiraan PNM SEM 5 Terlebih Dahulu.|");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t\t|========================================================|");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            goto
                                            flagmenukirahpnm;
                                        } else {

                                            //kemaskini data yang dimasukkan
                                            system("cls");
                                            System.out.printf("%.2d", "\t\t\t----MAKLUMAT YANG TELAH DIMASUKKAN SEBELUM INI----");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t|                            KIRA PNM SEM 5                                    |");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t| KOD  ");
                                            System.out.printf("%.2d", "| NAMA KURSUS ");
                                            System.out.printf("%.2d", "\t\t");
                                            System.out.printf("%.2d", "\t | NILAI MATA |");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t  A4003 ");
                                            System.out.printf("%.2d", " ENGLISH FOR TECHNOLOGY PURPOSE 4 ");
                                            System.out.printf("%.2d", "\t");
                                            System.out.printf("%.3d", hpnm.nilai_mata_eng);
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t  F4104 ");
                                            System.out.printf("%.3d", " ALGORITMA & STRUKTUR DATA       ");
                                            System.out.printf("%.3d", "\t");
                                            System.out.printf("%.3d", hpnm.nilai_mata_algo);
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t  F4105 ");
                                            System.out.printf("%.3d", " PENGATURCARAAN JAVA             ");
                                            System.out.printf("%.3d", "\t");
                                            System.out.printf("%.3d", hpnm.nilai_mata_java);
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t  F4106 ");
                                            System.out.printf("%.3d", " SISTEM ANALISIS & REKABENTUK    ");
                                            System.out.printf("%.3d", "\t");
                                            System.out.printf("%.3d", hpnm.nilai_mata_sad);
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t  F4109 ");
                                            System.out.printf("%.3d", " PANGKALAN DATA                  ");
                                            System.out.printf("%.3d", "\t");
                                            System.out.printf("%.3d", hpnm.nilai_mata_db);
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t  F4805 ");
                                            System.out.printf("%.3d", " AUDIO VIDEO DIGITAL             ");
                                            System.out.printf("%.3d", "\t");
                                            System.out.printf("%.3d", hpnm.nilai_mata_avd);
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            goto
                                            flagkemaskini;
                                        }

                                        break;

                                    }
                                    case 3: {
                                        //cetak slip

                                        if (hpnm.sem5 == 0) {
                                            system("cls");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t|========================================================|");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\7|Harap Maaf!. Sila Buat Kiraan PNM SEM 5 Terlebih Dahulu.|");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t|========================================================|");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            goto
                                            flagmenukirahpnm;
                                        } else {
                                            system("cls");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t|                            CETAK SLIP PEPERIKSAAN                            |");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            flagpnm1:
                                            System.out.printf("%.3d", "\tSila Masukkan Purata Nilai Mata Sem 1: ");
                                            cin>>hpnm.pnm1;

                                            if (hpnm.pnm1 >= 4.01) {
                                                System.out.printf("%.3d", "\n");
                                                System.out.printf("%.3d", "\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah.");
                                                System.out.printf("%.3d", "\n");
                                                //cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
                                                System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagpnm1;
                                            }

                                            if (hpnm.pnm1 < 0) {
                                                System.out.printf("%.3d", "\n");
                                                System.out.printf("%.3d", "\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah.");
                                                System.out.printf("%.3d", "\n");
                                                //cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
                                                System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagpnm1;
                                            }




                                            System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            flagpnm2:
                                            System.out.printf("%.3d", "\tSila Masukkan Purata Nilai Mata Sem 2: ");
                                            cin>>hpnm.pnm2;

                                            if (hpnm.pnm2 >= 4.01) {
                                                System.out.printf("%.3d", "\n");
                                                System.out.printf("%.3d", "\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah.");
                                                System.out.printf("%.3d", "\n");
                                                //cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
                                                System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagpnm2;
                                            }

                                            if (hpnm.pnm2 < 0) {
                                                System.out.printf("%.3d", "\n");
                                                System.out.printf("%.3d", "\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah.");
                                                System.out.printf("%.3d", "\n");
                                                //cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
                                                System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagpnm2;
                                            }

                                            System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            flagpnm3:
                                            System.out.printf("%.3d", "\tSila Masukkan Purata Nilai Mata Sem 3: ");
                                            cin>>hpnm.pnm3;

                                            if (hpnm.pnm3 >= 4.01) {
                                                System.out.printf("%.3d", "\n");
                                                System.out.printf("%.3d", "\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah.");
                                                System.out.printf("%.3d", "\n");
                                                //cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
                                                System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagpnm3;
                                            }

                                            if (hpnm.pnm3 <= 0) {
                                                System.out.printf("%.3d", "\n");
                                                System.out.printf("%.3d", "\7\tHarap Maaf!.Nilai Mata yang anda masukkan tidak sah.");
                                                System.out.printf("%.3d", "\n");
                                                //cout<<"\tSila guna Panduan Nilai Mata sebagai rujuk."<<endl;
                                                System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagpnm3;
                                            }

                                            hpnm.totalhpnm = (hpnm.pnm1 + hpnm.pnm2 + hpnm.pnm3 + hpnm.jum_sem5) / 4;

                                            System.out.printf("%.3d", "\n");

                                            System.out.printf("%.3d", "\n\t\tTEKAN ENTER UNTUK MEMAPARKAN SLIP KESELURUHAN. . . .");
                                            System.out.printf("%.3d", "\n");
                                            getch();

                                            system("cls");

//C++ TO JAVA CONVERTER TODO TASK: Calls to 'setf' using two arguments are not converted by C++ to Java Converter
                                            cout.setf(ios.fixed, ios.floatfield);
                                            String tarikh = new String(new char[10]);
                                            _strdate(tarikh);

                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t\t\t          *");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t\t\t         ***");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t\t\t        *****");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t\t\t       *******");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t\t\t        psmza  ");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t=============================================");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t\tSLIP MARKAH PELAJAR SEMESTER 5");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t\tDIPLOMA TEKNOLOGI MAKLUMAT");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t=============================================");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\n");

                                            System.out.printf("%.3d", "Nama: ");
                                            System.out.printf("%.3d", menupengguna.nama);
                                            System.out.printf("%.3d", "\t\t\tKod Kursus: DIP");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "No Matrik: ");
                                            System.out.printf("%.3d", menupengguna.no_matrik);
                                            System.out.printf("%.3d", "\t\t\t\t\tSemester: 5");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "No K/P: ");
                                            System.out.printf("%.3d", menupengguna.noic);
                                            System.out.printf("%.3d", "\t\t\t\t\tTarikh: ");
                                            System.out.printf("%.3d", tarikh);
                                            System.out.printf("%.3d", "\n");

                                            System.out.printf("%.3d", "===============================================================================================");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "| KOD  ");
                                            System.out.printf("%.3d", "| NAMA KURSUS ");
                                            System.out.printf("%.3d", "\t\t");
                                            System.out.printf("%.3d", "\t | JAM KREDIT ");
                                            System.out.printf("%.3d", "\t | NILAI MATA |");
                                            System.out.printf("%.3d", "\t GRED |");
                                            System.out.printf("%.3d", "\t MATA KREDIT |");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "===============================================================================================");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "  A4003 ");
                                            System.out.printf("%.3d", " ENGLISH FOR TECHNOLOGY PURPOSE 4 ");
                                            System.out.printf("%.3d", "   1.50 ");
                                            System.out.printf("%.3d", "\t    ");
                                            System.out.printf("%.2d", hpnm.nilai_mata_eng);

                                            if (hpnm.nilai_mata_eng == 4.00) {
                                                System.out.printf("%.2d", "\t A");
                                            } else if (hpnm.nilai_mata_eng == 3.67) {
                                                System.out.printf("%.2d", "\t A-");
                                            } else if (hpnm.nilai_mata_eng == 3.33) {
                                                System.out.printf("%.2d", "\t B+");
                                            } else if (hpnm.nilai_mata_eng == 3.00) {
                                                System.out.printf("%.2d", "\t B");
                                            } else if (hpnm.nilai_mata_eng == 2.67) {
                                                System.out.printf("%.2d", "\t B-");
                                            } else if (hpnm.nilai_mata_eng == 2.33) {
                                                System.out.printf("%.2d", "\t C+");
                                            } else if (hpnm.nilai_mata_eng == 2.00) {
                                                System.out.printf("%.2d", "\t C");
                                            } else if (hpnm.nilai_mata_eng == 1.67) {
                                                System.out.printf("%.2d", "\t C-");
                                            } else if (hpnm.nilai_mata_eng == 1.33) {
                                                System.out.printf("%.2d", "\t D+");
                                            } else if (hpnm.nilai_mata_eng == 1.00) {
                                                System.out.printf("%.2d", "\t D");
                                            } else if (hpnm.nilai_mata_eng == 0.67) {
                                                System.out.printf("%.2d", "\t E");
                                            } else if (hpnm.nilai_mata_eng == 0.33) {
                                                System.out.printf("%.2d", "\t E-");
                                            } else if (hpnm.nilai_mata_eng == 0.00) {
                                                System.out.printf("%.2d", "\t F");
                                            }

                                            System.out.printf("%.2d", "\t     ");
                                            System.out.printf("%.2d", hpnm.nilai_kredit_eng);
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "  F4104 ");
                                            System.out.printf("%.2d", " ALGORITMA & STRUKTUR DATA       ");
                                            System.out.printf("%.2d", "    3.00 ");
                                            System.out.printf("%.2d", "\t    ");
                                            System.out.printf("%.2d", hpnm.nilai_mata_algo);

                                            if (hpnm.nilai_mata_algo == 4.00) {
                                                System.out.printf("%.2d", "\t A");
                                            } else if (hpnm.nilai_mata_algo == 3.67) {
                                                System.out.printf("%.2d", "\t A-");
                                            } else if (hpnm.nilai_mata_algo == 3.33) {
                                                System.out.printf("%.2d", "\t B+");
                                            } else if (hpnm.nilai_mata_algo == 3.00) {
                                                System.out.printf("%.2d", "\t B");
                                            } else if (hpnm.nilai_mata_algo == 2.67) {
                                                System.out.printf("%.2d", "\t B-");
                                            } else if (hpnm.nilai_mata_algo == 2.33) {
                                                System.out.printf("%.2d", "\t C+");
                                            } else if (hpnm.nilai_mata_algo == 2.00) {
                                                System.out.printf("%.2d", "\t C");
                                            } else if (hpnm.nilai_mata_algo == 1.67) {
                                                System.out.printf("%.2d", "\t C-");
                                            } else if (hpnm.nilai_mata_algo == 1.33) {
                                                System.out.printf("%.2d", "\t D+");
                                            } else if (hpnm.nilai_mata_algo == 1.00) {
                                                System.out.printf("%.2d", "\t D");
                                            } else if (hpnm.nilai_mata_algo == 0.67) {
                                                System.out.printf("%.2d", "\t E");
                                            } else if (hpnm.nilai_mata_algo == 0.33) {
                                                System.out.printf("%.2d", "\t E-");
                                            } else if (hpnm.nilai_mata_algo == 0.00) {
                                                System.out.printf("%.2d", "\t F");
                                            }


                                            System.out.printf("%.2d", "\t     ");
                                            System.out.printf("%.2d", hpnm.nilai_kredit_algo);
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "  F4105 ");
                                            System.out.printf("%.2d", " PENGATURCARAAN JAVA             ");
                                            System.out.printf("%.2d", "    4.00 ");
                                            System.out.printf("%.2d", "\t    ");
                                            System.out.printf("%.2d", hpnm.nilai_mata_java);

                                            if (hpnm.nilai_mata_java == 4.00) {
                                                System.out.printf("%.2d", "\t A");
                                            } else if (hpnm.nilai_mata_java == 3.67) {
                                                System.out.printf("%.2d", "\t A-");
                                            } else if (hpnm.nilai_mata_java == 3.33) {
                                                System.out.printf("%.2d", "\t B+");
                                            } else if (hpnm.nilai_mata_java == 3.00) {
                                                System.out.printf("%.2d", "\t B");
                                            } else if (hpnm.nilai_mata_java == 2.67) {
                                                System.out.printf("%.2d", "\t B-");
                                            } else if (hpnm.nilai_mata_java == 2.33) {
                                                System.out.printf("%.2d", "\t C+");
                                            } else if (hpnm.nilai_mata_java == 2.00) {
                                                System.out.printf("%.2d", "\t C");
                                            } else if (hpnm.nilai_mata_java == 1.67) {
                                                System.out.printf("%.2d", "\t C-");
                                            } else if (hpnm.nilai_mata_java == 1.33) {
                                                System.out.printf("%.2d", "\t D+");
                                            } else if (hpnm.nilai_mata_java == 1.00) {
                                                System.out.printf("%.2d", "\t D");
                                            } else if (hpnm.nilai_mata_java == 0.67) {
                                                System.out.printf("%.2d", "\t E");
                                            } else if (hpnm.nilai_mata_java == 0.33) {
                                                System.out.printf("%.2d", "\t E-");
                                            } else if (hpnm.nilai_mata_java == 0.00) {
                                                System.out.printf("%.2d", "\t F");
                                            }


                                            System.out.printf("%.2d", "\t     ");
                                            System.out.printf("%.2d", hpnm.nilai_kredit_java);
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "  F4106 ");
                                            System.out.printf("%.2d", " SISTEM ANALISIS & REKABENTUK    ");
                                            System.out.printf("%.2d", "    2.00 ");
                                            System.out.printf("%.2d", "\t    ");
                                            System.out.printf("%.2d", hpnm.nilai_mata_sad);

                                            if (hpnm.nilai_mata_sad == 4.00) {
                                                System.out.printf("%.2d", "\t A");
                                            } else if (hpnm.nilai_mata_sad == 3.67) {
                                                System.out.printf("%.2d", "\t A-");
                                            } else if (hpnm.nilai_mata_sad == 3.33) {
                                                System.out.printf("%.2d", "\t B+");
                                            } else if (hpnm.nilai_mata_sad == 3.00) {
                                                System.out.printf("%.2d", "\t B");
                                            } else if (hpnm.nilai_mata_sad == 2.67) {
                                                System.out.printf("%.2d", "\t B-");
                                            } else if (hpnm.nilai_mata_sad == 2.33) {
                                                System.out.printf("%.2d", "\t C+");
                                            } else if (hpnm.nilai_mata_sad == 2.00) {
                                                System.out.printf("%.2d", "\t C");
                                            } else if (hpnm.nilai_mata_sad == 1.67) {
                                                System.out.printf("%.2d", "\t C-");
                                            } else if (hpnm.nilai_mata_sad == 1.33) {
                                                System.out.printf("%.2d", "\t D+");
                                            } else if (hpnm.nilai_mata_sad == 1.00) {
                                                System.out.printf("%.2d", "\t D");
                                            } else if (hpnm.nilai_mata_sad == 0.67) {
                                                System.out.printf("%.2d", "\t E");
                                            } else if (hpnm.nilai_mata_sad == 0.33) {
                                                System.out.printf("%.2d", "\t E-");
                                            } else if (hpnm.nilai_mata_sad == 0.00) {
                                                System.out.printf("%.2d", "\t F");
                                            }


                                            System.out.printf("%.2d", "\t     ");
                                            System.out.printf("%.2d", hpnm.nilai_kredit_sad);
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "  F4109 ");
                                            System.out.printf("%.2d", " PANGKALAN DATA                  ");
                                            System.out.printf("%.2d", "    3.00 ");
                                            System.out.printf("%.2d", "\t    ");
                                            System.out.printf("%.2d", hpnm.nilai_mata_db);

                                            if (hpnm.nilai_mata_db == 4.00) {
                                                System.out.printf("%.2d", "\t A");
                                            } else if (hpnm.nilai_mata_db == 3.67) {
                                                System.out.printf("%.2d", "\t A-");
                                            } else if (hpnm.nilai_mata_db == 3.33) {
                                                System.out.printf("%.2d", "\t B+");
                                            } else if (hpnm.nilai_mata_db == 3.00) {
                                                System.out.printf("%.2d", "\t B");
                                            } else if (hpnm.nilai_mata_db == 2.67) {
                                                System.out.printf("%.2d", "\t B-");
                                            } else if (hpnm.nilai_mata_db == 2.33) {
                                                System.out.printf("%.2d", "\t C+");
                                            } else if (hpnm.nilai_mata_db == 2.00) {
                                                System.out.printf("%.2d", "\t C");
                                            } else if (hpnm.nilai_mata_db == 1.67) {
                                                System.out.printf("%.2d", "\t C-");
                                            } else if (hpnm.nilai_mata_db == 1.33) {
                                                System.out.printf("%.2d", "\t D+");
                                            } else if (hpnm.nilai_mata_db == 1.00) {
                                                System.out.printf("%.2d", "\t D");
                                            } else if (hpnm.nilai_mata_db == 0.67) {
                                                System.out.printf("%.2d", "\t E");
                                            } else if (hpnm.nilai_mata_db == 0.33) {
                                                System.out.printf("%.2d", "\t E-");
                                            } else if (hpnm.nilai_mata_db == 0.00) {
                                                System.out.printf("%.2d", "\t F");
                                            }


                                            System.out.printf("%.2d", "\t     ");
                                            System.out.printf("%.2d", hpnm.nilai_kredit_db);
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "  F4805 ");
                                            System.out.printf("%.2d", " AUDIO VIDEO DIGITAL             ");
                                            System.out.printf("%.2d", "    2.00 ");
                                            System.out.printf("%.2d", "\t    ");
                                            System.out.printf("%.2d", hpnm.nilai_mata_avd);

                                            if (hpnm.nilai_mata_avd == 4.00) {
                                                System.out.printf("%.2d", "\t A");
                                            } else if (hpnm.nilai_mata_avd == 3.67) {
                                                System.out.printf("%.2d", "\t A-");
                                            } else if (hpnm.nilai_mata_avd == 3.33) {
                                                System.out.printf("%.2d", "\t B+");
                                            } else if (hpnm.nilai_mata_avd == 3.00) {
                                                System.out.printf("%.2d", "\t B");
                                            } else if (hpnm.nilai_mata_avd == 2.67) {
                                                System.out.printf("%.2d", "\t B-");
                                            } else if (hpnm.nilai_mata_avd == 2.33) {
                                                System.out.printf("%.2d", "\t C+");
                                            } else if (hpnm.nilai_mata_avd == 2.00) {
                                                System.out.printf("%.2d", "\t C");
                                            } else if (hpnm.nilai_mata_avd == 1.67) {
                                                System.out.printf("%.2d", "\t C-");
                                            } else if (hpnm.nilai_mata_avd == 1.33) {
                                                System.out.printf("%.2d", "\t D+");
                                            } else if (hpnm.nilai_mata_avd == 1.00) {
                                                System.out.printf("%.2d", "\t D");
                                            } else if (hpnm.nilai_mata_avd == 0.67) {
                                                System.out.printf("%.2d", "\t E");
                                            } else if (hpnm.nilai_mata_avd == 0.33) {
                                                System.out.printf("%.2d", "\t E-");
                                            } else if (hpnm.nilai_mata_avd == 0.00) {
                                                System.out.printf("%.2d", "\t F");
                                            }


                                            System.out.printf("%.2d", "\t     ");
                                            System.out.printf("%.2d", hpnm.nilai_kredit_avd);
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "===============================================================================================");
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "PNM");
                                            System.out.printf("%.2d", "\t:");
                                            System.out.printf("%.2d", hpnm.jum_sem5);
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "HPNM");
                                            System.out.printf("%.2d", "\t:");
                                            System.out.printf("%.2d", hpnm.totalhpnm);
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");

                                            if ((hpnm.totalhpnm >= 2.00) && (hpnm.totalhpnm <= 4.00)) {
                                                System.out.printf("%.2d", "KEPUTUSAN");
                                                System.out.printf("%.2d", "\t:");
                                                System.out.printf("%.2d", "\t");
                                                System.out.printf("%.2d", "KEDUDUKAN BAIK");
                                            } else if ((hpnm.totalhpnm >= 1.60) && (hpnm.totalhpnm <= 2.00)) {
                                                System.out.printf("%.2d", "KEPUTUSAN");
                                                System.out.printf("%.2d", "\t:");
                                                System.out.printf("%.2d", "\t");
                                                System.out.printf("%.2d", "KEDUDUKAN BERSYARAT");
                                            } else {
                                                System.out.printf("%.2d", "KEPUTUSAN");
                                                System.out.printf("%.2d", "\t:");
                                                System.out.printf("%.2d", "\t");
                                                System.out.printf("%.2d", "MENGULANG SEMESTER");
                                            }
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "STATUS");
                                            System.out.printf("%.2d", "\t:");
                                            System.out.printf("%.2d", "\t\t\t\t\tABDUL GAFFAR BIN ZAKARIA");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "1 - GAGAL KALI PERTAMA");
                                            System.out.printf("%.2d", "\t\t\t\tKETUA JAB. TEK. MAKLUMAT & KOMUNIKASI");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "2 - GAGAL KALI KEDUA");
                                            System.out.printf("%.2d", "\t\t\t\tb.p PENGARAH");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "3 - GAGAL KALI KETIGA");
                                            System.out.printf("%.2d", "\t\t\t\tPOLITEKNIK SULTAN MIZAN ZAINAL ABIDIN");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            flagsalah2:
                                            System.out.printf("%.2d", "\t\tAnda ingin meneruskan mengunakan Menu Kira HPNM (Y/N)?: ");
                                            cin>>menupengguna.guna_nilai;
                                            if (menupengguna.guna_nilai == 'Y' || menupengguna.guna_nilai == 'y') {
                                                system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagmenupro;
                                            } else if (menupengguna.guna_nilai == 'N' || menupengguna.guna_nilai == 'n') {
                                                system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                menupro;
                                            } else {
                                                System.out.printf("%.2d", "\n");
                                                System.out.printf("%.2d", "\n");
                                                System.out.printf("%.2d", "\t\t\7Masukkan Anda Salah");
                                                System.out.printf("%.2d", "\n");
                                                System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagsalah2;
                                            }

                                        }

                                        break;
                                    }
                                    case 4: {
                                        system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        menupro;
                                        break;
                                    }
                                    default: {
                                        system("cls");
                                        System.out.printf("%.2d", "\n\t\t\t\7SALAH INPUT");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagmenukirahpnm;
                                    }
                                }

                                break;
                            }

                            case 3: {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                menupro;
                                break;
                            }
                            default: {

                                System.out.printf("%.2d", "\n\t\t\t\7SALAH INPUT");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                flagmenupro;
                            }
                        }
                        break;
                    }

                    case 3: {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        goto
                        flag2;
                        break;
                    }

                    default: {

                        System.out.printf("%.2d", "\n\t\t\t\7SALAH INPUT");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        goto
                        menupro;
                    }
                }

                break;
            }

            case 2: {
                system("cls");
                //aturcara dalam BI
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                menupro1:
                System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t|                            USER MENU                                         |");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t|[1] - User Manual							       |");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t|[2] - Login		   						       |");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t|[3] - Exit                                                                    |");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\n\tInsert Your Choice :");
                cin>>menupengguna.menu;
                system("cls");

                switch (menupengguna.menu) {
                    case 1: {
                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|                            USER MANUAL                                       |");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        flagmanual1:
                        //manual pengguna - menerangkan tentang cara pengguna aplikasi ini
                        System.out.printf("%.2d", "\tINTRODUCTION");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tFrom the beginning,user can choose language.");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tIf user choose Malay language, user will enter to User Menu \n\tin Malay Language");
                        System.out.printf("%.2d", " and if user choose English language, user will enter to\n\tUser Menu in English Language.");
                        System.out.printf("%.2d", "\n");

                        System.out.printf("%.2d", "\n\t\t\tPRESS ENTER...\n");
                        System.out.printf("%.2d", "\n");
                        getch();
                        system("cls");
                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|                                USER MENU                                     |");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tIn this menu, user have three choice to do.if user choose user menu, user will be");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\texpose to guideline to use this program.If user choose to enter The Programs, user ");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\twill given choice for use Mata Nilai Guide and Calculate Menu HPNM Semenster 5.");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tIn this menu, provided exit menu for user easy to out from this program");
                        System.out.printf("%.2d", "\n");


                        System.out.printf("%.2d", "\n\t\t\tPRESS ENTER...\n");
                        System.out.printf("%.2d", "\n");
                        getch();
                        system("cls");

                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|                                LOGIN USER                                    |");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tThis menu Login User, will request user to insert full name, matrix number and");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tic nomber for enter to the program. User will enter to Menu Program if personal");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t infomation match.");
                        System.out.printf("%.2d", "\n");

                        System.out.printf("%.2d", "\n\t\t\tPRESS ENTER...\n");
                        System.out.printf("%.2d", "\n");
                        getch();
                        system("cls");

                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|                              MENU PROGRAM                                    |");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tIn this program,user can use Nilai Mata Guide where user get to enter exam mark");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tthey have for get Nilai Mata to count HPNM. Nilai Mata Guide will display grade");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\twhere user insert their mark. Meanwhile menu HPNM Calculate will count user marks");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tin semester 5 and semester before.Menu Exit will transfer user to previus menu.");
                        System.out.printf("%.2d", "\n");


                        System.out.printf("%.2d", "\n\t\t\tPRESS ENTER...\n");
                        System.out.printf("%.2d", "\n");
                        getch();
                        system("cls");


                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|                            NILAI MATA GUIDE                                  |");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tThis menu will allowed user to insert mark they have get and this menu will be ");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\ta nilai mata to user qwith grade for they nilai mata have. This menu not allowed");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tuser insert nilai mata bigger then 100 and not accept marks less then 0");
                        System.out.printf("%.2d", "\n");

                        System.out.printf("%.2d", "\n\t\t\tPRESS ENTER...\n");
                        System.out.printf("%.2d", "\n");
                        getch();
                        system("cls");


                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|                          PNM SEM 5 CALCULATE                                 |");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tIn this menu,the program will request user to insert nilai mata in subject");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\thas register at this sem.After that,user will enter Menu HPNM Calculate, where,");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\thave a PHM 5 Calculate, Update data, Print Slip and Exit.Menu PNM 5 Calculate");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\twill count new nilai mata have insert. Meanwhile, updata menu will allowed user");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tto chance their nilai mata.Print Slip Menu will print overall exam result");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tsemester 5. In this menu, user must count mark before get update data and to do");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tprint slip.If user want to print slip or update data, one warning will show.");
                        System.out.printf("%.2d", "\n");

                        System.out.printf("%.2d", "\n\t\t\tPRESS ENTER...\n");
                        System.out.printf("%.2d", "\n");
                        getch();

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        flagmanualsalah1:
                        System.out.printf("%.2d", "\t\tYou want continue use User Manual (Y/N)?: ");
                        cin>>menupengguna.guna_nilai;
                        if (menupengguna.guna_nilai == 'Y' || menupengguna.guna_nilai == 'y') {
                            system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                            goto
                            flagmanual1;
                        } else if (menupengguna.guna_nilai == 'N' || menupengguna.guna_nilai == 'n') {
                            system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                            goto
                            menupro1;
                        } else {
                            System.out.printf("%.2d", "\n");
                            System.out.printf("%.2d", "\n");
                            System.out.printf("%.2d", "\t\t\7Your Entry Is Wrong ");
                            System.out.printf("%.2d", "\n");
                            System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                            goto
                            flagmanualsalah1;
                        }
                        break;
                    }

                    case 2: {

                        int masa_t = 0;
                        int now;
                        now = time(null);

                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|\t\t\4Current Date & Time: ");
                        System.out.printf("%.2d", ctime(now));
                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|                                 LOGIN USER                                   |");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\tPlease Insert Your Name :");
                        menupengguna.nama = in.readLine();
                        menupengguna.nama = in.readLine();
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        flagnomatrik1:
                        count++;
                        if (count <= 3) {
                            System.out.printf("%.2d", "\tPlease insert your Matrix Number :");
                            cin>>menupengguna.no_matrik;

                            if (menupengguna.no_matrik.length() == 11) {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                flagnoic1;
                            } else if (menupengguna.no_matrik.length() > 11) {
                                System.out.printf("%.2d", "\7\n\tPlease check your Matric Number");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\tTrail : ");
                                System.out.printf("%.2d", count);
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                flagnomatrik1;
                            } else {
                                System.out.printf("%.2d", "\7\n\tYour entry is wrong ");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\tTrail : ");
                                System.out.printf("%.2d", count);
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                flagnomatrik1;
                            }
                        } else {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                            goto
                            amaran;
                        }

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        flagnoic1:
                        i++;
                        if (i <= 3) {
                            System.out.printf("%.2d", "\tPlease entry your Identity Card Number's:");
                            cin>>menupengguna.noic;

                            if (menupengguna.noic.length() == 12) {
                                System.out.printf("%.2d", "\n\t\t\tPRESS ENTER...\n");
                                System.out.printf("%.2d", "\n");
                                getch();
                                system("cls");

                            } else if (menupengguna.noic.length() > 12) {
                                System.out.printf("%.2d", "\7\n\tPlease check your Identity Card Number's!");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\tTrail : ");
                                System.out.printf("%.2d", i);
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                flagnoic1;
                            } else {
                                System.out.printf("%.2d", "\7\n\tYour entry is wrong");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\tTrail : ");
                                System.out.printf("%.2d", i);
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                flagnoic1;
                            }
                        } else {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                            goto
                            amaran;
                        }

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        flagmenupro1:
                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|                            MENU PROGRAM                                      |");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|[1] - Nilai Mata Guide							       |");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|[2] - HPNM Calculate							       |");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\t|[3] - Exit								       |");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\n\tInsert Your Choice :");
                        cin>>menupengguna.menupro;
                        system("cls");
                        switch (menupengguna.menupro) {
                            case 1: {
                                //pengguna uji markah mereka untuk dapatkan gred dan nilai mata mereka
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                gmarkah1:
                                System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\t|                            NILAI MATA GUIDE                                  |");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                System.out.printf("%.2d", "\n");

                                System.out.printf("%.2d", "\t\tPlease Insert Your Subject Mark:");
                                cin>>menupengguna.markah;

                                if (menupengguna.markah > 100 || menupengguna.markah < 0) {
                                    system("cls");
                                    System.out.printf("%.2d", "\n\t\t\7Hope Apology!You only allowed in value of 0 - 100 ");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    goto
                                    gmarkah1;
                                } else if (menupengguna.markah >= 80 && menupengguna.markah <= 100) {
                                    System.out.printf("%.2d", "\t\tGred: A");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\tNilai Mata: 4.00");
                                    System.out.printf("%.2d", "\n");
                                } else if (menupengguna.markah >= 75 && menupengguna.markah <= 79) {
                                    System.out.printf("%.2d", "\t\tGred: A-");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\tNilai Mata: 3.67");
                                    System.out.printf("%.2d", "\n");
                                } else if (menupengguna.markah >= 70 && menupengguna.markah <= 74) {
                                    System.out.printf("%.2d", "\t\tGred: B+");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\tNilai Mata: 3.33");
                                    System.out.printf("%.2d", "\n");
                                } else if (menupengguna.markah >= 65 && menupengguna.markah <= 69) {
                                    System.out.printf("%.2d", "\t\tGred: B");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\tNilai Mata: 3.00");
                                    System.out.printf("%.2d", "\n");
                                } else if (menupengguna.markah >= 60 && menupengguna.markah <= 64) {
                                    System.out.printf("%.2d", "\t\tGred: B-");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\tNilai Mata: 2.67");
                                    System.out.printf("%.2d", "\n");
                                } else if (menupengguna.markah >= 55 && menupengguna.markah <= 59) {
                                    System.out.printf("%.2d", "\t\tGred: C+");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\tNilai Mata: 2.33");
                                    System.out.printf("%.2d", "\n");
                                } else if (menupengguna.markah >= 50 && menupengguna.markah <= 54) {
                                    System.out.printf("%.2d", "\t\tGred: C");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\tNilai Mata: 2.00");
                                    System.out.printf("%.2d", "\n");
                                } else if (menupengguna.markah >= 47 && menupengguna.markah <= 49) {
                                    System.out.printf("%.2d", "\t\tGred: C-");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\tNilai Mata: 1.67");
                                    System.out.printf("%.2d", "\n");
                                } else if (menupengguna.markah >= 44 && menupengguna.markah <= 46) {
                                    System.out.printf("%.2d", "\t\tGred: D+");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\tNilai Mata: 1.33");
                                    System.out.printf("%.2d", "\n");
                                } else if (menupengguna.markah >= 40 && menupengguna.markah <= 43) {
                                    System.out.printf("%.2d", "\t\tGred: D");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\tNilai Mata: 1.00");
                                    System.out.printf("%.2d", "\n");
                                } else if (menupengguna.markah >= 30 && menupengguna.markah <= 39) {
                                    System.out.printf("%.2d", "\t\tGred: E");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\tNilai Mata: 0.67");
                                    System.out.printf("%.2d", "\n");
                                } else if (menupengguna.markah >= 20 && menupengguna.markah <= 29) {
                                    System.out.printf("%.2d", "\t\tGred: E-");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\tNilai Mata: 0.33");
                                    System.out.printf("%.2d", "\n");
                                } else {
                                    System.out.printf("%.2d", "\t\tGred: F");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\tNilai Mata: 0.00");
                                    System.out.printf("%.2d", "\n");
                                }

                                System.out.printf("%.2d", "\n\t\t\tPRESS ENTER...\n");
                                System.out.printf("%.2d", "\n");
                                getch();

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagsalah01:
                                System.out.printf("%.2d", "\t\tYou want continue use Nilai Mata Guide (Y/N)?: ");
                                cin>>menupengguna.guna_nilai;
                                if (menupengguna.guna_nilai == 'Y' || menupengguna.guna_nilai == 'y') {
                                    system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    goto
                                    gmarkah1;
                                } else if (menupengguna.guna_nilai == 'N' || menupengguna.guna_nilai == 'n') {
                                    system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    goto
                                    flagmenupro1;
                                } else {
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\t\t\7Your Entry Is Wrong ");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    goto
                                    flagsalah01;
                                }

                                break;
                            }

                            case 2: {

                                //kira hpnm bagi sem 5 dan sem sebelumnya
                                System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\t|                            PNM SEM 5 CALCULATE                               |");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                System.out.printf("%.2d", "\n");


                                System.out.printf("%.2d", "\tStudent's Name : ");
                                System.out.printf("%.2d", menupengguna.nama);
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\tMatric Number Student : ");
                                System.out.printf("%.2d", menupengguna.no_matrik);
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagkemaskini1:
                                System.out.printf("%.2d", "\tPlease Entry Nilai Mata Achieved ");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\tOf subject following:");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\n");

                                //kira bi
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagnilaimata_eng1:
                                System.out.printf("%.2d", "\tENGLISH FOR TECHNOLOGY PURPOSE 4: ");
                                System.out.printf("%.2d", "\t");
                                cin>>hpnm.nilai_mata_eng;

                                /*if(hpnm.nilai_mata_eng>=4.01)
                                {
                                cout<<endl;
                                cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
                                cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
                                cout<<endl;
                                goto flagnilaimata_eng1;
                                }*/

                                if ((hpnm.nilai_mata_eng == 4.00) || (hpnm.nilai_mata_eng == 3.67) || (hpnm.nilai_mata_eng == 3.33) || (hpnm.nilai_mata_eng == 3.00) || (hpnm.nilai_mata_eng == 2.67) || (hpnm.nilai_mata_eng == 2.33) || (hpnm.nilai_mata_eng == 2.00) || (hpnm.nilai_mata_eng == 1.67) || (hpnm.nilai_mata_eng == 1.33) || (hpnm.nilai_mata_eng == 1.00) || (hpnm.nilai_mata_eng == 0.67) || (hpnm.nilai_mata_eng == 0.33) || (hpnm.nilai_mata_eng == 0.00)) {
                                    hpnm.nilai_kredit_eng = (1.50) * (hpnm.nilai_mata_eng);

                                } else {
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\7\tHope Apology!.Nilai Mata that you invalid entry.");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\tPlease use Panduan Nilai Mata as refer.");
                                    System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    error_eng1:
                                    System.out.printf("%.2d", "\tYou want use Panduan Nilai Mata as reference ?(Y/N): ");
                                    cin>>hpnm.panduan;
                                    if (hpnm.panduan == 'Y' || hpnm.panduan == 'y') {
                                        System.out.printf("%.2d", "\n");
                                        pan.PNilaiEng();
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_eng1;

                                    } else if (hpnm.panduan == 'N' || hpnm.panduan == 'n') {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_eng1;
                                        System.out.printf("%.2d", "\n");
                                    } else {
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\t\t\7Your Entry Is Wrong");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        error_eng1;
                                    }
                                }

                                //kira algo
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagnilaimata_algo1:
                                System.out.printf("%.2d", "\tALGORITMA & STRUKTUR DATA: ");
                                System.out.printf("%.2d", "\t\t");
                                cin>>hpnm.nilai_mata_algo;

                                /*if(hpnm.nilai_mata_algo>=4.01)
                                {
                                cout<<endl;
                                cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
                                cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
                                cout<<endl;
                                goto flagnilaimata_algo1;
                                }*/

                                if ((hpnm.nilai_mata_algo == 4.00) || (hpnm.nilai_mata_algo == 3.67) || (hpnm.nilai_mata_algo == 3.33) || (hpnm.nilai_mata_algo == 3.00) || (hpnm.nilai_mata_algo == 2.67) || (hpnm.nilai_mata_algo == 2.33) || (hpnm.nilai_mata_algo == 2.00) || (hpnm.nilai_mata_algo == 1.67) || (hpnm.nilai_mata_algo == 1.33) || (hpnm.nilai_mata_algo == 1.00) || (hpnm.nilai_mata_algo == 0.67) || (hpnm.nilai_mata_algo == 0.33) || (hpnm.nilai_mata_algo == 0.00)) {
                                    hpnm.nilai_kredit_algo = (3.00) * (hpnm.nilai_mata_algo);

                                } else {
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\7\tHope Apology!.Nilai Mata that you invalid entry.");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\tPlease use Panduan Nilai Mata as refer.");
                                    System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    error_algo1:
                                    System.out.printf("%.2d", "\tYou want use Panduan Nilai Mata as reference ?(Y/N): ");
                                    cin>>hpnm.panduan;
                                    if (hpnm.panduan == 'Y' || hpnm.panduan == 'y') {
                                        System.out.printf("%.2d", "\n");
                                        pan.PNilaiEng();
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_algo1;

                                    } else if (hpnm.panduan == 'N' || hpnm.panduan == 'n') {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_algo1;
                                        System.out.printf("%.2d", "\n");
                                    } else {
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\t\t\7Your Entry Is Wrong");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        error_algo1;
                                    }
                                }
                                //kira java

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagnilaimata_java1:
                                System.out.printf("%.2d", "\tPENGATURCARAAN JAVA: ");
                                System.out.printf("%.2d", "\t\t\t");
                                cin>>hpnm.nilai_mata_java;

                                /*if(hpnm.nilai_mata_java>=4.01)
                                {
                                cout<<endl;
                                cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
                                cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
                                cout<<endl;
                                goto flagnilaimata_java1;
                                }*/

                                if ((hpnm.nilai_mata_java == 4.00) || (hpnm.nilai_mata_java == 3.67) || (hpnm.nilai_mata_java == 3.33) || (hpnm.nilai_mata_java == 3.00) || (hpnm.nilai_mata_java == 2.67) || (hpnm.nilai_mata_java == 2.33) || (hpnm.nilai_mata_java == 2.00) || (hpnm.nilai_mata_java == 1.67) || (hpnm.nilai_mata_java == 1.33) || (hpnm.nilai_mata_java == 1.00) || (hpnm.nilai_mata_java == 0.67) || (hpnm.nilai_mata_java == 0.33) || (hpnm.nilai_mata_java == 0.00)) {
                                    hpnm.nilai_kredit_java = (4.00) * (hpnm.nilai_mata_java);

                                } else {
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\7\tHope Apology!.Nilai Mata that you invalid entry.");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\tPlease use Panduan Nilai Mata as refer.");
                                    System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    error_java1:
                                    System.out.printf("%.2d", "\tYou want use Panduan Nilai Mata as reference ?(Y/N): ");
                                    cin>>hpnm.panduan;
                                    if (hpnm.panduan == 'Y' || hpnm.panduan == 'y') {
                                        System.out.printf("%.2d", "\n");
                                        pan.PNilaiEng();
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_java1;

                                    } else if (hpnm.panduan == 'N' || hpnm.panduan == 'n') {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_java1;
                                        System.out.printf("%.2d", "\n");
                                    } else {
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\t\t\7Your Entry Is Wrong");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        error_java1;
                                    }
                                }

                                //kira sad
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagnilaimata_sad1:
                                System.out.printf("%.2d", "\tSISTEM ANALISIS & REKABENTUK: ");
                                System.out.printf("%.2d", "\t\t");
                                cin>>hpnm.nilai_mata_sad;

                                /*if(hpnm.nilai_mata_sad>=4.01)
                                {
                                cout<<endl;
                                cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
                                cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
                                cout<<endl;
                                goto flagnilaimata_sad1;
                                }*/

                                if ((hpnm.nilai_mata_sad == 4.00) || (hpnm.nilai_mata_sad == 3.67) || (hpnm.nilai_mata_sad == 3.33) || (hpnm.nilai_mata_sad == 3.00) || (hpnm.nilai_mata_sad == 2.67) || (hpnm.nilai_mata_sad == 2.33) || (hpnm.nilai_mata_sad == 2.00) || (hpnm.nilai_mata_sad == 1.67) || (hpnm.nilai_mata_sad == 1.33) || (hpnm.nilai_mata_sad == 1.00) || (hpnm.nilai_mata_sad == 0.67) || (hpnm.nilai_mata_sad == 0.33) || (hpnm.nilai_mata_sad == 0.00)) {
                                    hpnm.nilai_kredit_sad = (2.00) * (hpnm.nilai_mata_sad);

                                } else {
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\7\tHope Apology!.Nilai Mata that you invalid entry.");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\tPlease use Panduan Nilai Mata as refer.");
                                    System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    error_sad1:
                                    System.out.printf("%.2d", "\tYou want use Panduan Nilai Mata as reference ?(Y/N): ");
                                    cin>>hpnm.panduan;
                                    if (hpnm.panduan == 'Y' || hpnm.panduan == 'y') {
                                        System.out.printf("%.2d", "\n");
                                        pan.PNilaiEng();
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_sad1;

                                    } else if (hpnm.panduan == 'N' || hpnm.panduan == 'n') {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_sad1;
                                        System.out.printf("%.2d", "\n");
                                    } else {
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\t\t\7Your Entry Is Wrong");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        error_sad1;
                                    }
                                }

                                //kira db

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagnilaimata_db1:
                                System.out.printf("%.2d", "\tPANGKALAN DATA: ");
                                System.out.printf("%.2d", "\t\t\t");
                                cin>>hpnm.nilai_mata_db;

                                /*if(hpnm.nilai_mata_db>=4.01)
                                {
                                cout<<endl;
                                cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
                                cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
                                cout<<endl;
                                goto flagnilaimata_db1;
                                }*/

                                if ((hpnm.nilai_mata_db == 4.00) || (hpnm.nilai_mata_db == 3.67) || (hpnm.nilai_mata_db == 3.33) || (hpnm.nilai_mata_db == 3.00) || (hpnm.nilai_mata_db == 2.67) || (hpnm.nilai_mata_db == 2.33) || (hpnm.nilai_mata_db == 2.00) || (hpnm.nilai_mata_db == 1.67) || (hpnm.nilai_mata_db == 1.33) || (hpnm.nilai_mata_db == 1.00) || (hpnm.nilai_mata_db == 0.67) || (hpnm.nilai_mata_db == 0.33) || (hpnm.nilai_mata_db == 0.00)) {
                                    hpnm.nilai_kredit_db = (3.00) * (hpnm.nilai_mata_db);

                                } else {
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\7\tHope Apology!.Nilai Mata that you invalid entry.");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\tPlease use Panduan Nilai Mata as refer.");
                                    System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    error_db1:
                                    System.out.printf("%.2d", "\tYou want use Panduan Nilai Mata as reference ?(Y/N): ");
                                    cin>>hpnm.panduan;
                                    if (hpnm.panduan == 'Y' || hpnm.panduan == 'y') {
                                        System.out.printf("%.2d", "\n");
                                        pan.PNilaiEng();
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_db1;

                                    } else if (hpnm.panduan == 'N' || hpnm.panduan == 'n') {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_db1;
                                        System.out.printf("%.2d", "\n");
                                    } else {
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\t\t\7Your Entry Is Wrong");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        error_db1;
                                    }
                                }


                                //kira avd
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagnilaimata_avd1:
                                System.out.printf("%.2d", "\tAUDIO VIDEO DIGITAL: ");
                                System.out.printf("%.2d", "\t\t\t");
                                cin>>hpnm.nilai_mata_avd;

                                /*if(hpnm.nilai_mata_avd>=4.01)
                                {
                                cout<<endl;
                                cout<<"\7\tHope Apology!.Nilai Mata that you invalid entry."<<endl;
                                cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
                                cout<<endl;
                                goto flagnilaimata_avd1;
                                }*/

                                if ((hpnm.nilai_mata_avd == 4.00) || (hpnm.nilai_mata_avd == 3.67) || (hpnm.nilai_mata_avd == 3.33) || (hpnm.nilai_mata_avd == 3.00) || (hpnm.nilai_mata_avd == 2.67) || (hpnm.nilai_mata_avd == 2.33) || (hpnm.nilai_mata_avd == 2.00) || (hpnm.nilai_mata_avd == 1.67) || (hpnm.nilai_mata_avd == 1.33) || (hpnm.nilai_mata_avd == 1.00) || (hpnm.nilai_mata_avd == 0.67) || (hpnm.nilai_mata_avd == 0.33) || (hpnm.nilai_mata_avd == 0.00)) {
                                    hpnm.nilai_kredit_avd = (2.00) * (hpnm.nilai_mata_avd);

                                } else {
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\7\tHope Apology!.Nilai Mata that you invalid entry.");
                                    System.out.printf("%.2d", "\n");
                                    System.out.printf("%.2d", "\tPlease use Panduan Nilai Mata as refer.");
                                    System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                    error_avd1:
                                    System.out.printf("%.2d", "\tYou want use Panduan Nilai Mata as reference ?(Y/N): ");
                                    cin>>hpnm.panduan;
                                    if (hpnm.panduan == 'Y' || hpnm.panduan == 'y') {
                                        System.out.printf("%.2d", "\n");
                                        pan.PNilaiEng();
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_avd1;

                                    } else if (hpnm.panduan == 'N' || hpnm.panduan == 'n') {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagnilaimata_avd1;
                                        System.out.printf("%.2d", "\n");
                                    } else {
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\t\t\7Your Entry Is Wrong");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        error_avd1;
                                    }
                                }

                                System.out.printf("%.2d", "\n");

                                System.out.printf("%.2d", "\n\t\t\tPRESS ENTER...");
                                System.out.printf("%.2d", "\n");
                                getch();
                                system("cls");

                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\n");

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                flagmenukirahpnm1:
                                System.out.printf("%.2d", "\t\t+++++++++++++++++++++++++MENU+++++++++++++++++++++++++");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\t\t|1.PNM 5 Calculate		   2.Updates Data    |");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\t\t|3.Print Slip			   4.Exit	     |");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\t\t++++++++++++++++++++++++++++++++++++++++++++++++++++++");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\n\t\tInsert Your Choice :");
                                cin>>menupengguna.kira_hpnm;

                                switch (menupengguna.kira_hpnm) {
                                    case 1: {

                                        //kira hpnm

                                        system("cls");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\t|                            PNM SEM 5 CALCULATE                               |");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\t| CODE  ");
                                        System.out.printf("%.2d", "| COURSE NAME  ");
                                        System.out.printf("%.2d", "\t\t");
                                        System.out.printf("%.2d", "\t | NILAI MATA |");
                                        System.out.printf("%.2d", "\t CREDIT POINTS  |");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\t  A4003 ");
                                        System.out.printf("%.2d", " ENGLISH FOR TECHNOLOGY PURPOSE 4 ");
                                        System.out.printf("%.2d", "\t");
                                        System.out.printf("%.3d", hpnm.nilai_mata_eng);
                                        System.out.printf("%.3d", "\t     ");
                                        System.out.printf("%.3d", hpnm.nilai_kredit_eng);
                                        System.out.printf("%.3d", "\n");
                                        System.out.printf("%.3d", "\t  F4104 ");
                                        System.out.printf("%.3d", " ALGORITMA & STRUKTUR DATA       ");
                                        System.out.printf("%.3d", "\t");
                                        System.out.printf("%.3d", hpnm.nilai_mata_algo);
                                        System.out.printf("%.3d", "\t     ");
                                        System.out.printf("%.3d", hpnm.nilai_kredit_algo);
                                        System.out.printf("%.3d", "\n");
                                        System.out.printf("%.3d", "\t  F4105 ");
                                        System.out.printf("%.3d", " PENGATURCARAAN JAVA             ");
                                        System.out.printf("%.3d", "\t");
                                        System.out.printf("%.3d", hpnm.nilai_mata_java);
                                        System.out.printf("%.3d", "\t     ");
                                        System.out.printf("%.3d", hpnm.nilai_kredit_java);
                                        System.out.printf("%.3d", "\n");
                                        System.out.printf("%.3d", "\t  F4106 ");
                                        System.out.printf("%.3d", " SISTEM ANALISIS & REKABENTUK    ");
                                        System.out.printf("%.3d", "\t");
                                        System.out.printf("%.3d", hpnm.nilai_mata_sad);
                                        System.out.printf("%.3d", "\t     ");
                                        System.out.printf("%.3d", hpnm.nilai_kredit_sad);
                                        System.out.printf("%.3d", "\n");
                                        System.out.printf("%.3d", "\t  F4109 ");
                                        System.out.printf("%.3d", " PANGKALAN DATA                  ");
                                        System.out.printf("%.3d", "\t");
                                        System.out.printf("%.3d", hpnm.nilai_mata_db);
                                        System.out.printf("%.3d", "\t     ");
                                        System.out.printf("%.3d", hpnm.nilai_kredit_db);
                                        System.out.printf("%.3d", "\n");
                                        System.out.printf("%.3d", "\t  F4805 ");
                                        System.out.printf("%.3d", " AUDIO VIDEO DIGITAL             ");
                                        System.out.printf("%.3d", "\t");
                                        System.out.printf("%.3d", hpnm.nilai_mata_avd);
                                        System.out.printf("%.3d", "\t     ");
                                        System.out.printf("%.3d", hpnm.nilai_kredit_avd);
                                        System.out.printf("%.3d", "\n");
                                        System.out.printf("%.3d", "\n");


                                        hpnm.sem5 = hpnm.nilai_kredit_algo + hpnm.nilai_kredit_avd + hpnm.nilai_kredit_db + hpnm.nilai_kredit_eng + hpnm.nilai_kredit_java + hpnm.nilai_kredit_sad;

                                        hpnm.jum_sem5 = (hpnm.sem5) / (1.50 + 4.00 + 3.00 + 3.00 + 2.00 + 2.00);


                                        System.out.printf("%.3d", "\t\tPNM This Sem: ");
                                        System.out.printf("%.2d", hpnm.jum_sem5);
                                        System.out.printf("%.2d", "\n");

                                        System.out.printf("%.2d", "\n\t\t\tPRESS ENTER...\n");
                                        System.out.printf("%.2d", "\n");
                                        getch();

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        flagsalah11:
                                        System.out.printf("%.2d", "\t\tYou want continue use Menu Kira PNM 5  (Y/N)?: ");
                                        cin>>menupengguna.guna_nilai;
                                        if (menupengguna.guna_nilai == 'Y' || menupengguna.guna_nilai == 'y') {
                                            system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            goto
                                            flagmenukirahpnm1;
                                        } else if (menupengguna.guna_nilai == 'N' || menupengguna.guna_nilai == 'n') {
                                            system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            goto
                                            flagmenupro1;
                                        } else {
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t\t\7Your Entry Is Wrong ");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            goto
                                            flagsalah11;
                                        }

                                        break;
                                    }
                                    case 2: {

                                        if (hpnm.sem5 == 0) {
                                            system("cls");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t\t|========================================================|");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t\t\7|Hope Apology!. Please make PNM SEM5's count first .     |");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t\t|========================================================|");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            goto
                                            flagmenukirahpnm1;
                                        } else {

                                            //kemaskini data yang dimasukkan
                                            system("cls");
                                            System.out.printf("%.2d", "\t\t\t----INFORMATION THAT HAD IN ENTRY PREVIOUSLY ----");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t|                            PNM SEM 5 CALCULATE                               |");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t| CODE  ");
                                            System.out.printf("%.2d", "| COURSE NAME  ");
                                            System.out.printf("%.2d", "\t\t");
                                            System.out.printf("%.2d", "\t | NILAI MATA |");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\t  A4003 ");
                                            System.out.printf("%.2d", " ENGLISH FOR TECHNOLOGY PURPOSE 4 ");
                                            System.out.printf("%.2d", "\t");
                                            System.out.printf("%.3d", hpnm.nilai_mata_eng);
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t  F4104 ");
                                            System.out.printf("%.3d", " ALGORITMA & STRUKTUR DATA       ");
                                            System.out.printf("%.3d", "\t");
                                            System.out.printf("%.3d", hpnm.nilai_mata_algo);
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t  F4105 ");
                                            System.out.printf("%.3d", " PENGATURCARAAN JAVA             ");
                                            System.out.printf("%.3d", "\t");
                                            System.out.printf("%.3d", hpnm.nilai_mata_java);
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t  F4106 ");
                                            System.out.printf("%.3d", " SISTEM ANALISIS & REKABENTUK    ");
                                            System.out.printf("%.3d", "\t");
                                            System.out.printf("%.3d", hpnm.nilai_mata_sad);
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t  F4109 ");
                                            System.out.printf("%.3d", " PANGKALAN DATA                  ");
                                            System.out.printf("%.3d", "\t");
                                            System.out.printf("%.3d", hpnm.nilai_mata_db);
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t  F4805 ");
                                            System.out.printf("%.3d", " AUDIO VIDEO DIGITAL             ");
                                            System.out.printf("%.3d", "\t");
                                            System.out.printf("%.3d", hpnm.nilai_mata_avd);
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            goto
                                            flagkemaskini1;
                                        }

                                        break;

                                    }
                                    case 3: {
                                        //cetak slip

                                        if (hpnm.sem5 == 0) {
                                            system("cls");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t|========================================================|");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\7|Hope Apology!. Please make PNM SEM5's count first .     |");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t|========================================================|");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            goto
                                            flagmenukirahpnm1;
                                        } else {
                                            system("cls");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t|                            PRINT SLIP EXAMINATION                            |");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            flagpnm11:
                                            System.out.printf("%.3d", "\tPlease Insert average Nilai Mata semester 1 : ");
                                            cin>>hpnm.pnm1;

                                            if (hpnm.pnm1 >= 4.01) {
                                                System.out.printf("%.3d", "\n");
                                                System.out.printf("%.3d", "\7\tHope Apology!.Nilai Mata that you invalid entry.");
                                                System.out.printf("%.3d", "\n");
                                                //cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
                                                System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagpnm11;
                                            }

                                            if (hpnm.pnm1 < 0) {
                                                System.out.printf("%.3d", "\n");
                                                System.out.printf("%.3d", "\7\tHope Apology!.Nilai Mata that you invalid entry.");
                                                System.out.printf("%.3d", "\n");
                                                //cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
                                                System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagpnm11;
                                            }


                                            System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            flagpnm21:
                                            System.out.printf("%.3d", "\tPlease Insert average Nilai Mata semester 2 : ");
                                            cin>>hpnm.pnm2;

                                            if (hpnm.pnm2 >= 4.01) {
                                                System.out.printf("%.3d", "\n");
                                                System.out.printf("%.3d", "\7\tHope Apology!.Nilai Mata that you invalid entry.");
                                                System.out.printf("%.3d", "\n");
                                                //cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
                                                System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagpnm21;
                                            }

                                            if (hpnm.pnm2 < 0) {
                                                System.out.printf("%.3d", "\n");
                                                System.out.printf("%.3d", "\7\tHope Apology!.Nilai Mata that you invalid entry.");
                                                System.out.printf("%.3d", "\n");
                                                //cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
                                                System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagpnm21;
                                            }

                                            System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            flagpnm31:
                                            System.out.printf("%.3d", "\tPlease Insert average Nilai Mata semester 3 : ");
                                            cin>>hpnm.pnm3;

                                            if (hpnm.pnm3 >= 4.01) {
                                                System.out.printf("%.3d", "\n");
                                                System.out.printf("%.3d", "\7\tHope Apology!.Nilai Mata that you invalid entry.");
                                                System.out.printf("%.3d", "\n");
                                                //cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
                                                System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagpnm31;
                                            }


                                            if (hpnm.pnm3 < 0) {
                                                System.out.printf("%.3d", "\n");
                                                System.out.printf("%.3d", "\7\tHope Apology!.Nilai Mata that you invalid entry.");
                                                System.out.printf("%.3d", "\n");
                                                //cout<<"\tPlease use Panduan Nilai Mata as refer."<<endl;
                                                System.out.printf("%.3d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagpnm31;
                                            }

                                            hpnm.totalhpnm = (hpnm.pnm1 + hpnm.pnm2 + hpnm.pnm3 + hpnm.jum_sem5) / 4;

                                            System.out.printf("%.3d", "\n");

                                            System.out.printf("%.3d", "\n\t\tPRESS ENTER TO DISPLAY SLIP TOTAL. . . .");
                                            System.out.printf("%.3d", "\n");
                                            getch();

                                            system("cls");
//C++ TO JAVA CONVERTER TODO TASK: Calls to 'setf' using two arguments are not converted by C++ to Java Converter
                                            cout.setf(ios.fixed, ios.floatfield);
                                            String tarikh = new String(new char[10]);
                                            _strdate(tarikh);
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t\t\t          *");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t\t\t         ***");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t\t\t        *****");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t\t\t       *******");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t\t\t        psmza  ");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t==================================================");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t\tSTUDENT SCORES SLIPS SEMESTER 5 ");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\tDIPLOMA IN INFORMATION TECHNOLOGY & COMMUNICATIONS");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\t\t\t==================================================");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "\n");

                                            System.out.printf("%.3d", "Name: ");
                                            System.out.printf("%.3d", menupengguna.nama);
                                            System.out.printf("%.3d", "\t\t\tCourse Code: DIP");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "Matrix No: ");
                                            System.out.printf("%.3d", menupengguna.no_matrik);
                                            System.out.printf("%.3d", "\t\t\t\t\tSemester: 5");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "I/C No: ");
                                            System.out.printf("%.3d", menupengguna.noic);
                                            System.out.printf("%.3d", "\t\t\t\t\tDate: ");
                                            System.out.printf("%.3d", tarikh);
                                            System.out.printf("%.3d", "\n");

                                            System.out.printf("%.3d", "===============================================================================================");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "| CODE ");
                                            System.out.printf("%.3d", "| COURSE NAME ");
                                            System.out.printf("%.3d", "\t\t");
                                            System.out.printf("%.3d", "\t| CREDIT HOURS ");
                                            System.out.printf("%.3d", "\t| NILAI MATA |");
                                            System.out.printf("%.3d", "\tGRADE |");
                                            System.out.printf("%.3d", "\tCREDIT POINTS |");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "===============================================================================================");
                                            System.out.printf("%.3d", "\n");
                                            System.out.printf("%.3d", "  A4003 ");
                                            System.out.printf("%.3d", " ENGLISH FOR TECHNOLOGY PURPOSE 4 ");
                                            System.out.printf("%.3d", "   1.50 ");
                                            System.out.printf("%.3d", "\t    ");
                                            System.out.printf("%.2d", hpnm.nilai_mata_eng);

                                            if (hpnm.nilai_mata_eng == 4.00) {
                                                System.out.printf("%.2d", "\t A");
                                            } else if (hpnm.nilai_mata_eng == 3.67) {
                                                System.out.printf("%.2d", "\t A-");
                                            } else if (hpnm.nilai_mata_eng == 3.33) {
                                                System.out.printf("%.2d", "\t B+");
                                            } else if (hpnm.nilai_mata_eng == 3.00) {
                                                System.out.printf("%.2d", "\t B");
                                            } else if (hpnm.nilai_mata_eng == 2.67) {
                                                System.out.printf("%.2d", "\t B-");
                                            } else if (hpnm.nilai_mata_eng == 2.33) {
                                                System.out.printf("%.2d", "\t C+");
                                            } else if (hpnm.nilai_mata_eng == 2.00) {
                                                System.out.printf("%.2d", "\t C");
                                            } else if (hpnm.nilai_mata_eng == 1.67) {
                                                System.out.printf("%.2d", "\t C-");
                                            } else if (hpnm.nilai_mata_eng == 1.33) {
                                                System.out.printf("%.2d", "\t D+");
                                            } else if (hpnm.nilai_mata_eng == 1.00) {
                                                System.out.printf("%.2d", "\t D");
                                            } else if (hpnm.nilai_mata_eng == 0.67) {
                                                System.out.printf("%.2d", "\t E");
                                            } else if (hpnm.nilai_mata_eng == 0.33) {
                                                System.out.printf("%.2d", "\t E-");
                                            } else if (hpnm.nilai_mata_eng == 0.00) {
                                                System.out.printf("%.2d", "\t F");
                                            }

                                            System.out.printf("%.2d", "\t     ");
                                            System.out.printf("%.2d", hpnm.nilai_kredit_eng);
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "  F4104 ");
                                            System.out.printf("%.2d", " ALGORITMA & STRUKTUR DATA       ");
                                            System.out.printf("%.2d", "    3.00 ");
                                            System.out.printf("%.2d", "\t    ");
                                            System.out.printf("%.2d", hpnm.nilai_mata_algo);

                                            if (hpnm.nilai_mata_algo == 4.00) {
                                                System.out.printf("%.2d", "\t A");
                                            } else if (hpnm.nilai_mata_algo == 3.67) {
                                                System.out.printf("%.2d", "\t A-");
                                            } else if (hpnm.nilai_mata_algo == 3.33) {
                                                System.out.printf("%.2d", "\t B+");
                                            } else if (hpnm.nilai_mata_algo == 3.00) {
                                                System.out.printf("%.2d", "\t B");
                                            } else if (hpnm.nilai_mata_algo == 2.67) {
                                                System.out.printf("%.2d", "\t B-");
                                            } else if (hpnm.nilai_mata_algo == 2.33) {
                                                System.out.printf("%.2d", "\t C+");
                                            } else if (hpnm.nilai_mata_algo == 2.00) {
                                                System.out.printf("%.2d", "\t C");
                                            } else if (hpnm.nilai_mata_algo == 1.67) {
                                                System.out.printf("%.2d", "\t C-");
                                            } else if (hpnm.nilai_mata_algo == 1.33) {
                                                System.out.printf("%.2d", "\t D+");
                                            } else if (hpnm.nilai_mata_algo == 1.00) {
                                                System.out.printf("%.2d", "\t D");
                                            } else if (hpnm.nilai_mata_algo == 0.67) {
                                                System.out.printf("%.2d", "\t E");
                                            } else if (hpnm.nilai_mata_algo == 0.33) {
                                                System.out.printf("%.2d", "\t E-");
                                            } else if (hpnm.nilai_mata_algo == 0.00) {
                                                System.out.printf("%.2d", "\t F");
                                            }


                                            System.out.printf("%.2d", "\t     ");
                                            System.out.printf("%.2d", hpnm.nilai_kredit_algo);
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "  F4105 ");
                                            System.out.printf("%.2d", " PENGATURCARAAN JAVA             ");
                                            System.out.printf("%.2d", "    4.00 ");
                                            System.out.printf("%.2d", "\t    ");
                                            System.out.printf("%.2d", hpnm.nilai_mata_java);

                                            if (hpnm.nilai_mata_java == 4.00) {
                                                System.out.printf("%.2d", "\t A");
                                            } else if (hpnm.nilai_mata_java == 3.67) {
                                                System.out.printf("%.2d", "\t A-");
                                            } else if (hpnm.nilai_mata_java == 3.33) {
                                                System.out.printf("%.2d", "\t B+");
                                            } else if (hpnm.nilai_mata_java == 3.00) {
                                                System.out.printf("%.2d", "\t B");
                                            } else if (hpnm.nilai_mata_java == 2.67) {
                                                System.out.printf("%.2d", "\t B-");
                                            } else if (hpnm.nilai_mata_java == 2.33) {
                                                System.out.printf("%.2d", "\t C+");
                                            } else if (hpnm.nilai_mata_java == 2.00) {
                                                System.out.printf("%.2d", "\t C");
                                            } else if (hpnm.nilai_mata_java == 1.67) {
                                                System.out.printf("%.2d", "\t C-");
                                            } else if (hpnm.nilai_mata_java == 1.33) {
                                                System.out.printf("%.2d", "\t D+");
                                            } else if (hpnm.nilai_mata_java == 1.00) {
                                                System.out.printf("%.2d", "\t D");
                                            } else if (hpnm.nilai_mata_java == 0.67) {
                                                System.out.printf("%.2d", "\t E");
                                            } else if (hpnm.nilai_mata_java == 0.33) {
                                                System.out.printf("%.2d", "\t E-");
                                            } else if (hpnm.nilai_mata_java == 0.00) {
                                                System.out.printf("%.2d", "\t F");
                                            }


                                            System.out.printf("%.2d", "\t     ");
                                            System.out.printf("%.2d", hpnm.nilai_kredit_java);
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "  F4106 ");
                                            System.out.printf("%.2d", " SISTEM ANALISIS & REKABENTUK    ");
                                            System.out.printf("%.2d", "    2.00 ");
                                            System.out.printf("%.2d", "\t    ");
                                            System.out.printf("%.2d", hpnm.nilai_mata_sad);

                                            if (hpnm.nilai_mata_sad == 4.00) {
                                                System.out.printf("%.2d", "\t A");
                                            } else if (hpnm.nilai_mata_sad == 3.67) {
                                                System.out.printf("%.2d", "\t A-");
                                            } else if (hpnm.nilai_mata_sad == 3.33) {
                                                System.out.printf("%.2d", "\t B+");
                                            } else if (hpnm.nilai_mata_sad == 3.00) {
                                                System.out.printf("%.2d", "\t B");
                                            } else if (hpnm.nilai_mata_sad == 2.67) {
                                                System.out.printf("%.2d", "\t B-");
                                            } else if (hpnm.nilai_mata_sad == 2.33) {
                                                System.out.printf("%.2d", "\t C+");
                                            } else if (hpnm.nilai_mata_sad == 2.00) {
                                                System.out.printf("%.2d", "\t C");
                                            } else if (hpnm.nilai_mata_sad == 1.67) {
                                                System.out.printf("%.2d", "\t C-");
                                            } else if (hpnm.nilai_mata_sad == 1.33) {
                                                System.out.printf("%.2d", "\t D+");
                                            } else if (hpnm.nilai_mata_sad == 1.00) {
                                                System.out.printf("%.2d", "\t D");
                                            } else if (hpnm.nilai_mata_sad == 0.67) {
                                                System.out.printf("%.2d", "\t E");
                                            } else if (hpnm.nilai_mata_sad == 0.33) {
                                                System.out.printf("%.2d", "\t E-");
                                            } else if (hpnm.nilai_mata_sad == 0.00) {
                                                System.out.printf("%.2d", "\t F");
                                            }


                                            System.out.printf("%.2d", "\t     ");
                                            System.out.printf("%.2d", hpnm.nilai_kredit_sad);
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "  F4109 ");
                                            System.out.printf("%.2d", " PANGKALAN DATA                  ");
                                            System.out.printf("%.2d", "    3.00 ");
                                            System.out.printf("%.2d", "\t    ");
                                            System.out.printf("%.2d", hpnm.nilai_mata_db);

                                            if (hpnm.nilai_mata_db == 4.00) {
                                                System.out.printf("%.2d", "\t A");
                                            } else if (hpnm.nilai_mata_db == 3.67) {
                                                System.out.printf("%.2d", "\t A-");
                                            } else if (hpnm.nilai_mata_db == 3.33) {
                                                System.out.printf("%.2d", "\t B+");
                                            } else if (hpnm.nilai_mata_db == 3.00) {
                                                System.out.printf("%.2d", "\t B");
                                            } else if (hpnm.nilai_mata_db == 2.67) {
                                                System.out.printf("%.2d", "\t B-");
                                            } else if (hpnm.nilai_mata_db == 2.33) {
                                                System.out.printf("%.2d", "\t C+");
                                            } else if (hpnm.nilai_mata_db == 2.00) {
                                                System.out.printf("%.2d", "\t C");
                                            } else if (hpnm.nilai_mata_db == 1.67) {
                                                System.out.printf("%.2d", "\t C-");
                                            } else if (hpnm.nilai_mata_db == 1.33) {
                                                System.out.printf("%.2d", "\t D+");
                                            } else if (hpnm.nilai_mata_db == 1.00) {
                                                System.out.printf("%.2d", "\t D");
                                            } else if (hpnm.nilai_mata_db == 0.67) {
                                                System.out.printf("%.2d", "\t E");
                                            } else if (hpnm.nilai_mata_db == 0.33) {
                                                System.out.printf("%.2d", "\t E-");
                                            } else if (hpnm.nilai_mata_db == 0.00) {
                                                System.out.printf("%.2d", "\t F");
                                            }


                                            System.out.printf("%.2d", "\t     ");
                                            System.out.printf("%.2d", hpnm.nilai_kredit_db);
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "  F4805 ");
                                            System.out.printf("%.2d", " AUDIO VIDEO DIGITAL             ");
                                            System.out.printf("%.2d", "    2.00 ");
                                            System.out.printf("%.2d", "\t    ");
                                            System.out.printf("%.2d", hpnm.nilai_mata_avd);

                                            if (hpnm.nilai_mata_avd == 4.00) {
                                                System.out.printf("%.2d", "\t A");
                                            } else if (hpnm.nilai_mata_avd == 3.67) {
                                                System.out.printf("%.2d", "\t A-");
                                            } else if (hpnm.nilai_mata_avd == 3.33) {
                                                System.out.printf("%.2d", "\t B+");
                                            } else if (hpnm.nilai_mata_avd == 3.00) {
                                                System.out.printf("%.2d", "\t B");
                                            } else if (hpnm.nilai_mata_avd == 2.67) {
                                                System.out.printf("%.2d", "\t B-");
                                            } else if (hpnm.nilai_mata_avd == 2.33) {
                                                System.out.printf("%.2d", "\t C+");
                                            } else if (hpnm.nilai_mata_avd == 2.00) {
                                                System.out.printf("%.2d", "\t C");
                                            } else if (hpnm.nilai_mata_avd == 1.67) {
                                                System.out.printf("%.2d", "\t C-");
                                            } else if (hpnm.nilai_mata_avd == 1.33) {
                                                System.out.printf("%.2d", "\t D+");
                                            } else if (hpnm.nilai_mata_avd == 1.00) {
                                                System.out.printf("%.2d", "\t D");
                                            } else if (hpnm.nilai_mata_avd == 0.67) {
                                                System.out.printf("%.2d", "\t E");
                                            } else if (hpnm.nilai_mata_avd == 0.33) {
                                                System.out.printf("%.2d", "\t E-");
                                            } else if (hpnm.nilai_mata_avd == 0.00) {
                                                System.out.printf("%.2d", "\t F");
                                            }


                                            System.out.printf("%.2d", "\t     ");
                                            System.out.printf("%.2d", hpnm.nilai_kredit_avd);
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "===============================================================================================");
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "PNM");
                                            System.out.printf("%.2d", "\t:");
                                            System.out.printf("%.2d", hpnm.jum_sem5);
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "HPNM");
                                            System.out.printf("%.2d", "\t:");
                                            System.out.printf("%.2d", hpnm.totalhpnm);
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");

                                            if ((hpnm.totalhpnm >= 2.00) && (hpnm.totalhpnm <= 4.00)) {
                                                System.out.printf("%.2d", "RESULT");
                                                System.out.printf("%.2d", "\t:");
                                                System.out.printf("%.2d", "\t");
                                                System.out.printf("%.2d", "GOOD POSITION");
                                            } else if ((hpnm.totalhpnm >= 1.60) && (hpnm.totalhpnm <= 2.00)) {
                                                System.out.printf("%.2d", "RESULT");
                                                System.out.printf("%.2d", "\t:");
                                                System.out.printf("%.2d", "\t");
                                                System.out.printf("%.2d", "CONDITIONAL POSITION");
                                            } else {
                                                System.out.printf("%.2d", "RESULT");
                                                System.out.printf("%.2d", "\t:");
                                                System.out.printf("%.2d", "\t");
                                                System.out.printf("%.2d", "REPEAT SEMESTER");
                                            }
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");

                                            System.out.printf("%.2d", "STATUS");
                                            System.out.printf("%.2d", "\t:");
                                            System.out.printf("%.2d", "\t\t\t\t\tABDUL GAFFAR BIN ZAKARIA");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "1 - FAILED FIRST TIME");
                                            System.out.printf("%.2d", "\t\t\t\tDEPT'S CHIEF.TECH.INFORMATION & COMMUNICATION ");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "2 - FAILED SECOND TIME");
                                            System.out.printf("%.2d", "\t\t\t\tb.p DIRECTOR");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "3 - FAILED THIRD TIME");
                                            System.out.printf("%.2d", "\t\t\t\tPOLITEKNIK SULTAN MIZAN ZAINAL ABIDIN");
                                            System.out.printf("%.2d", "\n");
                                            System.out.printf("%.2d", "\n");

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                            flagsalah21:
                                            System.out.printf("%.2d", "\t\tYou want continue use Menu Kira HPNM (Y/N)?: ");
                                            cin>>menupengguna.guna_nilai;
                                            if (menupengguna.guna_nilai == 'Y' || menupengguna.guna_nilai == 'y') {
                                                system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagmenupro1;
                                            } else if (menupengguna.guna_nilai == 'N' || menupengguna.guna_nilai == 'n') {
                                                system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                menupro1;
                                            } else {
                                                System.out.printf("%.2d", "\n");
                                                System.out.printf("%.2d", "\n");
                                                System.out.printf("%.2d", "\t\t\7Your Entry Is Wrong");
                                                System.out.printf("%.2d", "\n");
                                                System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                                goto
                                                flagsalah21;
                                            }

                                        }

                                        break;
                                    }
                                    case 4: {
                                        system("cls");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        menupro1;
                                        break;
                                    }
                                    default: {
                                        system("cls");
                                        System.out.printf("%.2d", "\n\t\t\t\7WRONG INPUT");
                                        System.out.printf("%.2d", "\n");
                                        System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                        goto
                                        flagmenukirahpnm1;
                                    }
                                }

                                break;
                            }

                            case 3: {

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                menupro1;
                                break;
                            }
                            default: {
                                system("cls");
                                System.out.printf("%.2d", "\n\t\t\t\7WRONG INPUT");
                                System.out.printf("%.2d", "\n");
                                System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                                goto
                                flagmenupro1;
                            }
                        }
                        break;
                    }

                    case 3: {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        goto
                        flag2;
                        break;
                    }

                    default: {
                        system("cls");
                        System.out.printf("%.2d", "\n\t\t\t\7WRONG INPUT ");
                        System.out.printf("%.2d", "\n");
                        System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                        goto
                        menupro1;
                    }
                }


                //akhir 
                break;
            }

            case 3: {

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                flag2:
                system("cls");
                System.out.printf("%.2d", "\t\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t\t|                   TERIMA KASIH DAUN KELADI                   |");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t\t|               ADA MASA KAMI BUAT ADVANCE LAGI                |");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t\t|                   DAUN SIRIH DAUN SELASIH                    |");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t\t|                     SEKIAN TERIMA KASIH                      |");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\n\t\t\t\tTEKAN ENTER...\n");
                System.out.printf("%.2d", "\n");
                getch();
                system("start jasabonda.exe");
                system("exit");
                break;
            }

            default: {
                system("cls");
                System.out.printf("%.2d", "\n\t\t\t\t\7SALAH INPUT");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                goto
                flag1;

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
                amaran:
                system("cls");
                System.out.printf("%.2d", "\t\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t\t|                   WARNING!!!      ALERT!!!                   |");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\t\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\n\t\t\t\tAMARAN!!!ADA PENCEROBOH!!!\7\7\7\n");
                System.out.printf("%.2d", "\n");
                System.out.printf("%.2d", "\n\t\t\t\tTEKAN ENTER...\n");
                System.out.printf("%.2d", "\n");
                getch();
                system("exit");
            }
        }
    }
}

public class pengguna {

    public String nama = new String(new char[50]);
    public String no_matrik = new String(new char[saiz]);
    public String noic = new String(new char[saiz]);
    public byte guna_nilai;
    public int pilihan;
    public int menu;
    public int menupro;
    public int markah;
    public int bil_kursus;
    public int kira_hpnm;
}

public class kirahpnm {

    public double nilai_mata_eng;
    public double nilai_mata_algo;
    public double nilai_mata_java;
    public double nilai_mata_sad;
    public double nilai_mata_db;
    public double nilai_mata_avd;
    public double nilai_kredit_eng;
    public double nilai_kredit_algo;
    public double nilai_kredit_java;
    public double nilai_kredit_sad;
    public double nilai_kredit_db;
    public double nilai_kredit_avd;
    public double pnm1;
    public double pnm2;
    public double pnm3;
    public double jum_sem5;
    public double sem5;
    public double totalhpnm;
    public byte panduan;
}

public class Panduan {

    public final void PNilai() {

//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
        gmarkah:
        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
        System.out.print("\n");
        System.out.print("\t|                            PANDUAN NILAI MATA                                |");
        System.out.print("\n");
        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
        System.out.print("\n");

        System.out.print("\t\tSila masukkan markah subjek anda:");
        cin>>GlobalMembersCpp1.menupengguna.markah;

        if (GlobalMembersCpp1.menupengguna.markah > 100 || GlobalMembersCpp1.menupengguna.markah < 0) {
            system("cls");
            System.out.print("\n\t\t\7Harap Maaf!Anda hanya dibenarkan masuk nilai daripada 0 - 100");
            System.out.print("\n");
            System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
            goto
            gmarkah;
        } else if (GlobalMembersCpp1.menupengguna.markah >= 80 && GlobalMembersCpp1.menupengguna.markah <= 100) {
            System.out.print("\t\tGred: A");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 4.00");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 75 && GlobalMembersCpp1.menupengguna.markah <= 79) {
            System.out.print("\t\tGred: A-");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 3.67");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 70 && GlobalMembersCpp1.menupengguna.markah <= 74) {
            System.out.print("\t\tGred: B+");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 3.33");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 65 && GlobalMembersCpp1.menupengguna.markah <= 69) {
            System.out.print("\t\tGred: B");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 3.00");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 60 && GlobalMembersCpp1.menupengguna.markah <= 64) {
            System.out.print("\t\tGred: B-");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 2.67");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 55 && GlobalMembersCpp1.menupengguna.markah <= 59) {
            System.out.print("\t\tGred: C+");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 2.33");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 50 && GlobalMembersCpp1.menupengguna.markah <= 54) {
            System.out.print("\t\tGred: C");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 2.00");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 47 && GlobalMembersCpp1.menupengguna.markah <= 49) {
            System.out.print("\t\tGred: C-");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 1.67");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 44 && GlobalMembersCpp1.menupengguna.markah <= 46) {
            System.out.print("\t\tGred: D+");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 1.33");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 40 && GlobalMembersCpp1.menupengguna.markah <= 43) {
            System.out.print("\t\tGred: D");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 1.00");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 30 && GlobalMembersCpp1.menupengguna.markah <= 39) {
            System.out.print("\t\tGred: E");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 0.67");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 20 && GlobalMembersCpp1.menupengguna.markah <= 29) {
            System.out.print("\t\tGred: E-");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 0.33");
            System.out.print("\n");
        } else {
            System.out.print("\t\tGred: F");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 0.00");
            System.out.print("\n");
        }

        System.out.print("\n\t\t\tTEKAN ENTER...\n");
        System.out.print("\n");
        getch();


    }

    public final void PNilaiEng() {
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
        gmarkah1:
        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
        System.out.print("\n");
        System.out.print("\t|                            NILAI MATA GUIDE                                  |");
        System.out.print("\n");
        System.out.print("\t|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|");
        System.out.print("\n");

        System.out.print("\t\tPlease Insert Your Subject Mark:");
        cin>>GlobalMembersCpp1.menupengguna.markah;

        if (GlobalMembersCpp1.menupengguna.markah > 100 || GlobalMembersCpp1.menupengguna.markah < 0) {
            system("cls");
            System.out.print("\n\t\t\7Hope Apology!You only allowed in value of 0 - 100 ");
            System.out.print("\n");
            System.out.print("\n");
//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:
            goto
            gmarkah1;
        } else if (GlobalMembersCpp1.menupengguna.markah >= 80 && GlobalMembersCpp1.menupengguna.markah <= 100) {
            System.out.print("\t\tGred: A");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 4.00");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 75 && GlobalMembersCpp1.menupengguna.markah <= 79) {
            System.out.print("\t\tGred: A-");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 3.67");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 70 && GlobalMembersCpp1.menupengguna.markah <= 74) {
            System.out.print("\t\tGred: B+");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 3.33");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 65 && GlobalMembersCpp1.menupengguna.markah <= 69) {
            System.out.print("\t\tGred: B");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 3.00");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 60 && GlobalMembersCpp1.menupengguna.markah <= 64) {
            System.out.print("\t\tGred: B-");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 2.67");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 55 && GlobalMembersCpp1.menupengguna.markah <= 59) {
            System.out.print("\t\tGred: C+");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 2.33");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 50 && GlobalMembersCpp1.menupengguna.markah <= 54) {
            System.out.print("\t\tGred: C");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 2.00");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 47 && GlobalMembersCpp1.menupengguna.markah <= 49) {
            System.out.print("\t\tGred: C-");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 1.67");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 44 && GlobalMembersCpp1.menupengguna.markah <= 46) {
            System.out.print("\t\tGred: D+");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 1.33");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 40 && GlobalMembersCpp1.menupengguna.markah <= 43) {
            System.out.print("\t\tGred: D");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 1.00");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 30 && GlobalMembersCpp1.menupengguna.markah <= 39) {
            System.out.print("\t\tGred: E");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 0.67");
            System.out.print("\n");
        } else if (GlobalMembersCpp1.menupengguna.markah >= 20 && GlobalMembersCpp1.menupengguna.markah <= 29) {
            System.out.print("\t\tGred: E-");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 0.33");
            System.out.print("\n");
        } else {
            System.out.print("\t\tGred: F");
            System.out.print("\n");
            System.out.print("\t\tNilai Mata: 0.00");
            System.out.print("\n");
        }

        System.out.print("\n\t\t\tPRESS ENTER...\n");
        System.out.print("\n");
        getch();


    }
}


Was This Post Helpful? 0
  • +
  • -

#5 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1362
  • View blog
  • Posts: 3,002
  • Joined: 30-January 11

Re: How can i convert this C++ code to java

Posted 23 October 2011 - 08:12 AM

Well what are the errors?

With over 3000 lines of code, nobody here is going to trawl through you code and hunt down compiler errors.

One of the potential problems is that in the C++ code, you have used goto statements which gladly don't exist in Java. You will need to refactor you code in order to get rid of the need of goto statements.

This post has been edited by Ryano121: 23 October 2011 - 08:17 AM

Was This Post Helpful? 1
  • +
  • -

#6 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1819
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

Re: How can i convert this C++ code to java

Posted 23 October 2011 - 08:15 AM

What errors you get? please post your error messages which you get. Also you may need to look at introductory tutorials to get started with Java
Was This Post Helpful? 0
  • +
  • -

#7 azuma kazuma  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 22-October 11

Re: How can i convert this C++ code to java

Posted 23 October 2011 - 08:37 AM

the error get is about the goto statement..it can't be change to java code.
Was This Post Helpful? 0
  • +
  • -

#8 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1362
  • View blog
  • Posts: 3,002
  • Joined: 30-January 11

Re: How can i convert this C++ code to java

Posted 23 October 2011 - 08:41 AM

This is because there is no goto statement in Java (gladly). You will need to figure out a way to change the flow of you program to get rid of the goto statements.

If the original program was properly structured and designed, then you shouldn't even need the goto statements in the first place.
Was This Post Helpful? 0
  • +
  • -

#9 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1819
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

Re: How can i convert this C++ code to java

Posted 23 October 2011 - 09:04 AM

I think you have to look at this syllabus about getting better at programming, and look at the introductory tutorials, you may find them helpful to your way to Java
Was This Post Helpful? 1
  • +
  • -

#10 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10648
  • View blog
  • Posts: 39,544
  • Joined: 27-December 08

Re: How can i convert this C++ code to java

Posted 23 October 2011 - 09:18 AM

Quote

This is because there is no goto statement in Java (gladly).

On a technicality, goto is a reserved word in Java. You just get errors for using it.

@azuma kazuma: Emphasis on the tutorials for looping, arrays, and class design.
Was This Post Helpful? 0
  • +
  • -

#11 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8342
  • View blog
  • Posts: 31,880
  • Joined: 06-March 08

Re: How can i convert this C++ code to java

Posted 23 October 2011 - 01:15 PM

There is no struct statement in Java.
You will have to create a class for each of them
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1