Program aplikasi KRS dan KHS
Pada kali ini belum menggunakan loop.
judul : Input KRS
#include <iostream>
using namespace std;
kamus :
string nama;
string matkul1,matkul2,matkul3,matkul4;
string nim;
int sks1,sks2,sks3, sks4;
float nilait[3], nilaip[3], nilaitp[6];
float nilait2[3], nilaip2[3], nilaitp2[6];
float nilait3[3], nilaip3[3], nilaitp3[6];
float nilait4[3], nilaip4[3], nilaitp4[6];
float anilai1,anilai1p,anilai1tp1,anilai1tp2;
float anilai2,anilai2p,anilai2tp1,anilai2tp2;
float anilai3,anilai3p,anilai3tp1,anilai3tp2;
float anilai4,anilai4p,anilai4tp1,anilai4tp2;
float totsks;
string hnilai1[4];
string hnilai2[4];
string hnilai3[4];
string hnilai4[4];
string fak,jenjang,prodi;
string status,status2,status3, status4;
string pilih;
deskripsi :
int main()
{
cout<<" Aplikasi KRS dan KHS"<<endl;
cout<<"-------------------------------"<<endl;
cout<<"Masukkan Nama : ";
getline(cin,nama);
cout<<"Masukkan NIM : ";
cin >> nim;
if((nim[0]!='A' || nim[0]!='B') && (nim[1]!='1' || nim[1]!='2') && nim[2]!='1')
{
cout<<"Maaf input anda salah"<<endl;
}
else if(nim[0]=='A')
{
fak="FIK";
if(nim[1]=='1')
{
jenjang="S-1";
if(nim[2]=='1')
{
prodi="Teknik Informatika";
}
}
else if(nim[1]=='2')
{
jenjang="D-3";
if(nim[2]=='1')
{
prodi="Manajemen Informatika";
}
}
}
else if(nim[0]=='B')
{
fak="FEB";
if(nim[1]=='1')
{
jenjang="S-1";
if(nim[2]=='1')
{
prodi = "Manajemen";
}
}
else if(nim[1]=='2')
{
jenjang="D-3";
if(nim[2]=='1')
{
prodi="Akuntansi";
}
}
}
do {
cin.ignore();
//matkul1
cout<<"Masukkan Matkul ke 1 : ";
getline(cin,matkul1);
cout<<"Masukkan SKS : ";
cin>>sks1;
cout<<"Status T/P,TP : ";
cin>>status;
if(status=="T" || status=="t")
{
cout<<"Nilai Tugas :";
cin >> nilait[0];
cout<<"Nilai MID : ";
cin >>nilait[1];
cout<<"Nilai UAS : ";
cin >> nilait[2];
anilai1= (nilait[0]*0.3)+(nilait[1]*0.4)+(nilait[2]*0.3);
if(anilai1>=85)
{
hnilai1[0]="A";
}
else if(anilai1>=80 && anilai1<85)
{
hnilai1[0]="AB";
}
else if(anilai1>=70 && anilai1<=79)
{
hnilai1[0]="B";
}
else if(anilai1>=65 && anilai1<=69)
{
hnilai1[0]="BC";
}
else if(anilai1>=60 && anilai1<=64)
{
hnilai1[0]="C";
}
else if(anilai1>=50 && anilai1<=59)
{
hnilai1[0]="D";
}
else
{
hnilai1[0]="E";
}
}
else if (status=="P" || status=="p")
{
cout<<"Nilai Tugas :";
cin >> nilaip[0];
cout<<"Nilai MID : ";
cin >>nilaip[1];
cout<<"Nilai UAS : ";
cin >> nilaip[2];
anilai1p= ((nilaip[0]*0.3)+(nilaip[1]*0.4)+(nilaip[2]*0.3));
if(anilai1p>=85)
{
hnilai1[1]="A";
}
else if(anilai1p>=80 && anilai1p<85)
{
hnilai1[1]="AB";
}
else if(anilai1p>=70 && anilai1p<=79)
{
hnilai1[1]="B";
}
else if(anilai1p>=65 && anilai1p<=69)
{
hnilai1[1]="BC";
}
else if(anilai1p>=60 && anilai1p<=64)
{
hnilai1[1]="C";
}
else if(anilai1p>=50 && anilai1p<=59)
{
hnilai1[1]="D";
}
else
{
hnilai1[1]="E";
}
}
else if(status=="TP" || status=="tp")
{
cout<<"Nilai Tugas Teori : ";
cin >>nilaitp[0];
cout<<"Nilai MID Teori : ";
cin >> nilaitp[1];
cout<<"Nilai UAS Teori : ";
cin >> nilaitp[2];
cout<<"Nilai Tugas Praktek : ";
cin >>nilaitp[3];
cout<<"Nilai MID Praktek : ";
cin >>nilaitp[4];
cout<<"Nilai UAS Praktek : ";
cin >> nilaitp[5];
anilai1tp1=((nilaitp[0]*0.3) + (nilaitp[1]*0.4) + (nilaitp[2]*0.3));
//nilai
if(anilai1tp1>=85)
{
hnilai1[2]="A";
}
else if(anilai1tp1>=80 && anilai1tp1<85)
{
hnilai1[2]="AB";
}
else if(anilai1tp1>=70 && anilai1tp1<=79)
{
hnilai1[2]="B";
}
else if(anilai1tp1>=65 && anilai1tp1<=69)
{
hnilai1[2]="BC";
}
else if(anilai1tp1>=60 && anilai1tp1<=64)
{
hnilai1[2]="C";
}
else if(anilai1tp1>=50 && anilai1tp1<=59)
{
hnilai1[2]="D";
}
else
{
hnilai1[2]="E";
}
anilai1tp2=((nilaitp[3]*0.3) + (nilaitp[4]*0.4) + (nilaitp[5]*0.3));
//nilai
if(anilai1tp2>=85)
{
hnilai1[3]="A";
}
else if(anilai1tp2>=80 && anilai1tp2<85)
{
hnilai1[3]="AB";
}
else if(anilai1tp2>=70 && anilai1tp2<=79)
{
hnilai1[3]="B";
}
else if(anilai1tp2>=65 && anilai1tp2<69)
{
hnilai1[3]="BC";
}
else if(anilai1tp2>=60 && anilai1tp2<=64)
{
hnilai1[3]="C";
}
else if(anilai1tp2>=50 && anilai1tp2<=59)
{
hnilai1[3]="D";
}
else
{
hnilai1[3]="E";
}
}
//matkul2
cin.ignore();
cout<<"Masukkan Matkul ke 2 : ";
getline(cin,matkul2);
cout<<"Masukkan SKS : ";
cin>>sks2;
cout<<"Status T/P,TP : ";
cin>>status2;
if(status2=="T" || status2=="t")
{
cout<<"Nilai Tugas :";
cin >> nilait2[0];
cout<<"Nilai MID : ";
cin >>nilait2[1];
cout<<"Nilai UAS : ";
cin >> nilait2[2];
anilai2= ((nilait2[0]*0.3)+(nilait2[1]*0.4)+(nilait2[2]*0.3));
//nilai
if(anilai2>=85)
{
hnilai2[0]="A";
}
else if(anilai2>=80 && anilai2<85)
{
hnilai2[0]="AB";
}
else if(anilai2>=70 && anilai2<=79)
{
hnilai2[0]="B";
}
else if(anilai2>=65 && anilai2<=69)
{
hnilai2[0]="BC";
}
else if(anilai2>=60 && anilai2<=64)
{
hnilai2[0]="C";
}
else if(anilai2>=50 && anilai2<=59)
{
hnilai2[0]="D";
}
else
{
hnilai2[0]="E";
}
}
else if (status2=="P" || status2=="p")
{
cout<<"Nilai Tugas :";
cin >> nilaip2[0];
cout<<"Nilai MID : ";
cin >>nilaip2[1];
cout<<"Nilai UAS : ";
cin >> nilaip2[2];
anilai2p= ((nilaip2[0]*0.3)+(nilaip2[1]*0.4)+(nilaip2[2]*0.3));
//nilai
if(anilai2p>=85)
{
hnilai2[1]="A";
}
else if(anilai2p>=80 && anilai2p<85)
{
hnilai2[1]="AB";
}
else if(anilai2p>=70 && anilai2p<=79)
{
hnilai2[1]="B";
}
else if(anilai2p>=65 && anilai2p<=69)
{
hnilai2[1]="BC";
}
else if(anilai2p>=60 && anilai2p<=64)
{
hnilai2[1]="C";
}
else if(anilai2p>=50 && anilai2p<=59)
{
hnilai2[1]="D";
}
else
{
hnilai2[1]="E";
}
}
else if(status2=="TP" || status2=="tp")
{
cout<<"Nilai Tugas Teori : ";
cin >>nilaitp2[0];
cout<<"Nilai MID Teori : ";
cin >> nilaitp2[1];
cout<<"Nilai UAS Teori : ";
cin >> nilaitp2[2];
cout<<"Nilai Tugas Praktek : ";
cin >>nilaitp2[3];
cout<<"Nilai MID Praktek : ";
cin >>nilaitp2[4];
cout<<"Nilai UAS Praktek : ";
cin >> nilaitp2[5];
anilai2tp1=((nilaitp2[0]*0.3) + (nilaitp2[1]*0.4) + (nilaitp2[2]*0.3));
//nilai
if(anilai2tp1>=85)
{
hnilai2[2]="A";
}
else if(anilai2tp1>=80 && anilai2tp1<85)
{
hnilai2[2]="AB";
}
else if(anilai2tp1>=70 && anilai2tp1<=79)
{
hnilai2[2]="B";
}
else if(anilai2tp1>=65 && anilai2tp1<=69)
{
hnilai2[2]="BC";
}
else if(anilai2tp1>=60 && anilai2tp1<=64)
{
hnilai2[2]="C";
}
else if(anilai2tp1>=50 && anilai2tp1<=59)
{
hnilai2[2]="D";
}
else
{
hnilai2[2]="E";
}
anilai2tp2=((nilaitp2[3]*0.3) + (nilaitp2[4]*0.4) + (nilaitp2[5]*0.3));
//nilai
if(anilai2tp2>=85)
{
hnilai2[3]="A";
}
else if(anilai2tp2>=80 && anilai2tp2<=85)
{
hnilai2[3]="AB";
}
else if(anilai2tp2>=70 && anilai2tp2<=79)
{
hnilai2[3]="B";
}
else if(anilai2tp2>=65 && anilai2tp2<=69)
{
hnilai2[3]="BC";
}
else if(anilai2tp2>=60 && anilai2tp2<=64)
{
hnilai2[3]="C";
}
else if(anilai2tp2>=50 && anilai2tp2<=59)
{
hnilai2[3]="D";
}
else
{
hnilai2[3]="E";
}
}
//matkul3
cin.ignore();
cout<<"Masukkan Matkul ke 3 : ";
getline(cin,matkul3);
cout<<"Masukkan SKS : ";
cin>>sks3;
cout<<"Status T/P,TP : ";
cin>>status3;
if(status3=="T" || status3=="t")
{
cout<<"Nilai Tugas :";
cin >> nilait3[0];
cout<<"Nilai MID : ";
cin >>nilait3[1];
cout<<"Nilai UAS : ";
cin >> nilait3[2];
anilai3= ((nilait3[0]*0.3)+(nilait3[1]*0.4)+(nilait3[2]*0.3));
//nilai
if(anilai3>=85)
{
hnilai3[0]="A";
}
else if(anilai3>=80 && anilai3<85)
{
hnilai3[0]="AB";
}
else if(anilai3>=70 && anilai3<=79)
{
hnilai3[0]="B";
}
else if(anilai3>=65 && anilai3<=69)
{
hnilai3[0]="BC";
}
else if(anilai3>=60 && anilai3<=64)
{
hnilai3[0]="C";
}
else if(anilai3>=50 && anilai3<=59)
{
hnilai3[0]="D";
}
else
{
hnilai3[0]="E";
}
}
else if (status3=="P" || status3=="p")
{
cout<<"Nilai Tugas :";
cin >> nilaip3[0];
cout<<"Nilai MID : ";
cin >>nilaip3[1];
cout<<"Nilai UAS : ";
cin >> nilaip3[2];
anilai3p= ((nilaip3[0]*0.3)+(nilaip3[1]*0.4)+(nilaip3[2]*0.3));
//nilai
if(anilai3p>=85)
{
hnilai3[1]="A";
}
else if(anilai3p>=80 && anilai3p<85)
{
hnilai3[1]="AB";
}
else if(anilai3p>=70 && anilai3p<=79)
{
hnilai3[1]="B";
}
else if(anilai3p>=65 && anilai3p<=69)
{
hnilai3[1]="BC";
}
else if(anilai3p>=60 && anilai3p<=64)
{
hnilai3[1]="C";
}
else if(anilai3p>=50 && anilai3p<=59)
{
hnilai3[1]="D";
}
else
{
hnilai3[1]="E";
}
}
else if(status3=="TP" || status3=="tp")
{
cout<<"Nilai Tugas Teori : ";
cin >>nilaitp3[0];
cout<<"Nilai MID Teori : ";
cin >> nilaitp3[1];
cout<<"Nilai UAS Teori : ";
cin >> nilaitp3[2];
cout<<"Nilai Tugas Praktek : ";
cin >>nilaitp3[3];
cout<<"Nilai MID Praktek : ";
cin >>nilaitp3[4];
cout<<"Nilai UAS Praktek : ";
cin >> nilaitp3[5];
anilai3tp1=((nilaitp3[0]*0.3) + (nilaitp3[1]*0.4) + (nilaitp3[2]*0.3));
//nilai
if(anilai3tp1>=85)
{
hnilai3[2]="A";
}
else if(anilai3tp1>=80 && anilai3tp1<85)
{
hnilai3[2]="AB";
}
else if(anilai3tp1>=70 && anilai3tp1<=79)
{
hnilai3[2]="B";
}
else if(anilai3tp1>=65 && anilai3tp1<=69)
{
hnilai3[2]="BC";
}
else if(anilai3tp1>=60 && anilai3tp1<=64)
{
hnilai3[2]="C";
}
else if(anilai3tp1>=50 && anilai3tp1<=59)
{
hnilai3[2]="D";
}
else
{
hnilai3[2]="E";
}
anilai3tp2=((nilaitp3[3]*0.3) + (nilaitp3[4]*0.4) + (nilaitp3[5]*0.3));
//nilai
if(anilai3tp2>=85)
{
hnilai3[3]="A";
}
else if(anilai3tp2>=80 && anilai3tp2<85)
{
hnilai3[3]="AB";
}
else if(anilai3tp2>=70 && anilai3tp2<=79)
{
hnilai3[3]="B";
}
else if(anilai3tp2>=65 && anilai3tp2<=69)
{
hnilai3[3]="BC";
}
else if(anilai3tp2>=60 && anilai3tp2<=64)
{
hnilai3[3]="C";
}
else if(anilai3tp2>=50 && anilai3tp2<=59)
{
hnilai3[3]="D";
}
else
{
hnilai3[3]="E";
}
}
//matkul4
cin.ignore();
cout<<"Masukkan Matkul ke 4 : ";
getline(cin,matkul4);
cout<<"Masukkan SKS : ";
cin>>sks4;
cout<<"Status T/P,TP : ";
cin>>status4;
if(status4=="T" || status4=="t")
{
cout<<"Nilai Tugas :";
cin >> nilait4[0];
cout<<"Nilai MID : ";
cin >>nilait4[1];
cout<<"Nilai UAS : ";
cin >> nilait4[2];
anilai4 = ((nilait4[0]*0.3)+(nilait4[1]*0.4)+(nilait4[2]*0.3));
//nilai
if(anilai4>=85)
{
hnilai4[0]="A";
}
else if(anilai4>=80 && anilai4<85)
{
hnilai4[0]="AB";
}
else if(anilai4>=70 && anilai4<=79)
{
hnilai4[0]="B";
}
else if(anilai4>=65 && anilai4<=69)
{
hnilai4[0]="BC";
}
else if(anilai4>=60 && anilai4<=64)
{
hnilai4[0]="C";
}
else if(anilai4>=50 && anilai4<=59)
{
hnilai4[0]="D";
}
else
{
hnilai4[0]="E";
}
}
else if (status4=="P" || status4=="p")
{
cout<<"Nilai Tugas :";
cin >> nilaip4[0];
cout<<"Nilai MID : ";
cin >>nilaip4[1];
cout<<"Nilai UAS : ";
cin >> nilaip4[2];
anilai4p= ((nilaip4[0]*0.3)+(nilaip4[1]*0.4)+(nilaip4[2]*0.3));
//nilai
if(anilai4p>=85)
{
hnilai4[1]="A";
}
else if(anilai4p>=80 && anilai4p<85)
{
hnilai4[1]="AB";
}
else if(anilai4p>=70 && anilai4p<=79)
{
hnilai4[1]="B";
}
else if(anilai4p>=65 && anilai4p<=69)
{
hnilai4[1]="BC";
}
else if(anilai4p>=60 && anilai4p<=64)
{
hnilai4[1]="C";
}
else if(anilai4p>=50 && anilai4p<=59)
{
hnilai4[1]="D";
}
else
{
hnilai4[1]="E";
}
}
else if(status4=="TP" || status4=="tp")
{
cout<<"Nilai Tugas Teori : ";
cin >>nilaitp4[0];
cout<<"Nilai MID Teori : ";
cin >> nilaitp4[1];
cout<<"Nilai UAS Teori : ";
cin >> nilaitp4[2];
cout<<"Nilai Tugas Praktek : ";
cin >>nilaitp4[3];
cout<<"Nilai MID Praktek : ";
cin >>nilaitp4[4];
cout<<"Nilai UAS Praktek : ";
cin >> nilaitp4[5];
anilai4tp1=((nilaitp4[0]*0.3) + (nilaitp4[1]*0.4) + (nilaitp4[2]*0.3));
//nilai
if(anilai4tp1>=85)
{
hnilai4[2]="A";
}
else if(anilai4tp1>=80 && anilai4tp1<85)
{
hnilai4[2]="AB";
}
else if(anilai4tp1>=70 && anilai4tp1<=79)
{
hnilai4[2]="B";
}
else if(anilai4tp1>=65 && anilai4tp1<=69)
{
hnilai4[2]="BC";
}
else if(anilai4tp1>=60 && anilai4tp1<=64)
{
hnilai4[2]="C";
}
else if(anilai4tp1>=50 && anilai4tp1<=59)
{
hnilai4[2]="D";
}
else
{
hnilai4[2]="E";
}
anilai4tp2=((nilaitp4[3]*0.3) + (nilaitp4[4]*0.4) + (nilaitp4[5]*0.3));
//nilai
if(anilai4tp2>=85)
{
hnilai4[3]="A";
}
else if(anilai4tp2>=80 && anilai4tp2<85)
{
hnilai4[3]="AB";
}
else if(anilai4tp2>=70 && anilai4tp2<=79)
{
hnilai4[3]="B";
}
else if(anilai4tp2>=65 && anilai4tp2<=69)
{
hnilai4[3]="BC";
}
else if(anilai4tp2>=60 && anilai4tp2<=64)
{
hnilai4[3]="C";
}
else if(anilai4tp2>=50 && anilai4tp2<=59)
{
hnilai4[3]="D";
}
else
{
hnilai4[3]="E";
}
}
cout<<"Apakah data sudah benar ? (y/t)"<<endl;
cin>>pilih;
}
while(pilih!="y");
//Output
system("cls");
cout<<"\t\t"<<"Aplikasi KRS dan KHS"<<endl;
cout<<"==================================================="<<endl;
cout<<"Nama : " << nama<<endl;
cout<<"Nim : "<< nim<<endl;
cout<<"Prodi: "<<prodi<<endl;
cout<<"==================================================="<<endl;
//matkul1
cout<<"Mata Kuliah 1 : "<<matkul1<<endl;
cout<<"SKS : "<<sks1<<endl;
cout<<"Status : "<<status<<endl;
cout<<"---------------------------------------------"<<endl;
if (status=="T" || status=="t" )
{
cout<<"Nilai Tugas : "<< nilait[0]<<endl;
cout<<"Nilai MID : " <<nilait[1]<<endl;
cout<<"Nilai UAS : "<<nilait[2]<<endl;
cout<<"Nilai Akhir : " <<anilai1<<" = ";
cout<<hnilai1[0]<<endl;
}
else if(status=="P" || status=="p")
{
cout<<"Nilai Tugas : "<< nilaip[0]<<endl;
cout<<"Nilai MID : " <<nilaip[1]<<endl;
cout<<"Nilai UAS : "<<nilaip[2]<<endl;
cout<<"Nilai Akhir : "<< anilai1p<<" = " <<hnilai1[1]<<endl;
}
else if(status=="TP" || status=="tp")
{
cout<<"Nilai Tugas Teori : "<< nilaitp[0]<<endl;
cout<<"Nilai MID Teori : " <<nilaitp[1]<<endl;
cout<<"Nilai UAS Teori : "<<nilaitp[2]<<endl;
cout<<"Nilai Akhir : "<<anilai1tp1<<" = ";
cout<<hnilai1[2]<<endl<<endl;
cout<<"Nilai Tugas Praktek : "<< nilaitp[3]<<endl;
cout<<"Nilai MID Praktek : " <<nilaitp[4]<<endl;
cout<<"Nilai UAS Praktek : "<<nilaitp[5]<<endl;
cout<<"Nilai Akhir : "<<anilai1tp2<<" = ";
cout<<hnilai1[3]<<endl;
}
cout<<"==================================================="<<endl;
//Matkul 2
cout<<"Mata Kuliah 2 : "<<matkul2<<endl;
cout<<"SKS : "<<sks2<<endl;
cout<<"Status : "<<status2<<endl;
cout<<"---------------------------------------------"<<endl;
if (status2=="T" || status2=="t" )
{
cout<<"Nilai Tugas : "<< nilait2[0]<<endl;
cout<<"Nilai MID : " <<nilait2[1]<<endl;
cout<<"Nilai UAS : "<<nilait2[2]<<endl;
cout<<"Nilai Akhir : "<<anilai2<<" = "<<hnilai2[0]<<endl;
}
else if(status2=="P" || status2=="p")
{
cout<<"Nilai Tugas : "<< nilaip2[0]<<endl;
cout<<"Nilai MID : " <<nilaip2[1]<<endl;
cout<<"Nilai UAS : "<<nilaip2[2]<<endl;
cout<<"Nilai Akhir : "<<anilai2p<<" = "<<hnilai2[1]<<endl;
}
else if(status2=="TP" || status2=="tp")
{
cout<<"Nilai Tugas Teori : "<< nilaitp2[0]<<endl;
cout<<"Nilai MID Teori : " <<nilaitp2[1]<<endl;
cout<<"Nilai UAS Teori : "<<nilaitp2[2]<<endl;
cout<<"Nilai Akhir : "<<anilai2tp1<<" = "<<hnilai2[2]<<endl<<endl;
cout<<"Nilai Tugas Praktek : "<< nilaitp2[3]<<endl;
cout<<"Nilai MID Praktek : " <<nilaitp2[4]<<endl;
cout<<"Nilai UAS Praktek : "<<nilaitp2[5]<<endl;
cout<<"Nilai Akhir : "<<anilai2tp2<<" = "<<hnilai2[3]<<endl;
}
cout<<"==================================================="<<endl;
//Matkul 3
cout<<"Mata Kuliah 3 : "<<matkul3<<endl;
cout<<"SKS : "<<sks3<<endl;
cout<<"Status : "<<status3<<endl;
cout<<"---------------------------------------------"<<endl;
if (status3=="T" || status3=="t" )
{
cout<<"Nilai Tugas : "<< nilait3[0]<<endl;
cout<<"Nilai MID : " <<nilait3[1]<<endl;
cout<<"Nilai UAS : "<<nilait3[2]<<endl;
cout<<"rata-rata : "<<anilai3<<" = "<<hnilai3[0]<<endl;
}
else if(status3=="P" || status3=="p")
{
cout<<"Nilai Tugas : "<< nilaip3[0]<<endl;
cout<<"Nilai MID : " <<nilaip3[1]<<endl;
cout<<"Nilai UAS : "<<nilaip3[2]<<endl;
cout<<"Rata - rata : "<<anilai3p<<" = "<<hnilai3[1]<<endl;
}
else if(status3=="TP" || status3=="tp")
{
cout<<"Nilai Tugas Teori : "<< nilaitp3[0]<<endl;
cout<<"Nilai MID Teori : " <<nilaitp3[1]<<endl;
cout<<"Nilai UAS Teori : "<<nilaitp3[2]<<endl;
cout<<"Rata - Rata : "<<anilai3tp1<<" = " <<hnilai3[2]<<endl<<endl;
cout<<"Nilai Tugas Praktek : "<< nilaitp3[3]<<endl;
cout<<"Nilai MID Praktek : " <<nilaitp3[4]<<endl;
cout<<"Nilai UAS Praktek : "<<nilaitp3[5]<<endl;
cout<<"Rata - Rata = "<<anilai3tp2<<" = "<<hnilai3[3]<<endl;
}
cout<<"==================================================="<<endl;
//matkul 4
cout<<"Mata Kuliah 4 : "<<matkul4<<endl;
cout<<"SKS : "<<sks4<<endl;
cout<<"Status : "<<status4<<endl;
cout<<"---------------------------------------------"<<endl;
if (status4=="T" || status4=="t" )
{
cout<<"Nilai Tugas : "<< nilait4[0]<<endl;
cout<<"Nilai MID : " <<nilait4[1]<<endl;
cout<<"Nilai UAS : "<<nilait4[2]<<endl;
cout<<"Rata-rata : "<<anilai4<<" = "<<hnilai4[0]<<endl;
}
else if(status4=="P" || status4=="p")
{
cout<<"Nilai Tugas : "<< nilaip4[0]<<endl;
cout<<"Nilai MID : " <<nilaip4[1]<<endl;
cout<<"Nilai UAS : "<<nilaip4[2]<<endl;
cout<<"Rata-rata : "<<anilai4p<<" = "<<hnilai4[1]<<endl;
}
else if(status4=="TP" || status4=="tp")
{
cout<<"Nilai Tugas Teori : "<< nilaitp4[0]<<endl;
cout<<"Nilai MID Teori : " <<nilaitp4[1]<<endl;
cout<<"Nilai UAS Teori : "<<nilaitp4[2]<<endl;
cout<<"Rata - Rata : "<<anilai4tp1<<" = "<<hnilai4[2]<<endl<<endl;
cout<<"Nilai Tugas Praktek : "<< nilaitp4[3]<<endl;
cout<<"Nilai MID Praktek : " <<nilaitp4[4]<<endl;
cout<<"Nilai UAS Praktek : "<<nilaitp4[5]<<endl;
cout<<"Rata - Rata : "<<anilai4tp2<<" = "<<hnilai4[3]<<endl;
}
cout<<"==================================================="<<endl;
totsks=sks1+sks2+sks3+sks4;
cout<<"Total SKS : "<<totsks;
return 0;
}