Tugas KRS KHS
// source code
// PROGRAM KRS KHS REVISI
// UMAR RAFI"B
#include <iostream>
using namespace std;
//kamus
string NAMA,NIM,NIM1;
string matkul1,matkul2,matkul3,matkul4,matkul5; // mata kuliah
string stats;
int sks1,sks2,sks3,sks4,sks5; // Sks
char ulang ='Y';
char ulang1= 'Y';
char ulang2= 'Y';
char ulang3= 'Y';
char ulang4='Y';
char ulang5='Y';
int counter,counter1,counter2,counter3,counter4,counter5;
// nilai matkul
int N_mid1_1,N_mid1_2, N_mid2_1,N_mid2_2, N_mid3_1, N_mid3_2, N_mid4_1, N_mid4_2, N_mid5_1,N_mid5_2 ;
int N_uas1_1, N_uas1_2,N_uas2_1, N_uas2_2, N_uas3_1,N_uas3_2, N_uas4_1, N_uas4_2, N_uas5_1, N_uas5_2;
int N_tgs1_1, N_tgs1_2, N_tgs2_1, N_tgs2_2, N_tgs3_1, N_tgs3_2, N_tgs4_1, N_tgs4_2, N_tgs5_1, N_tgs5_2;
// bobot nilai
float bobot1_11,bobot1_12,bobot1_13,bobot1_21, bobot1_22,bobot1_23;
float bobot2_11,bobot2_12,bobot2_13,bobot2_21, bobot2_22,bobot2_23;
float bobot3_11,bobot3_12,bobot3_13,bobot3_21, bobot3_22,bobot3_23;
float bobot4_11,bobot4_12,bobot4_13,bobot4_21, bobot4_22,bobot4_23;
float bobot5_11,bobot5_12,bobot5_13,bobot5_21, bobot5_22,bobot5_23;
int totsks;
float totskor,ips;
int totbot1,totbot2,totbot3,totbot4,totbot5;
//skor
float skor1,skor2,skor3,skor4,skor5;
//deskripsi
int main()
{
counter5=0;
do
{
cout << "==============================================" <<endl;
cout << " SISTEM PENILAIAN " <<endl;
cout << " UNIVERSITAS DIAN NUSWANTORO " <<endl;
cout << "==============================================" <<endl;
cout << "NAMA :"; cin.ignore(); getline(cin,NAMA);
cout << "3 DIGIT NIM pertama :";
cin >> NIM;
cout << "Masukkan DIGIT NIM lainnya: ";
cin >> NIM1;
if(NIM == "A11")
{
cout << "NIM :"<<NIM<<NIM1<<" Prodi : FIK S1 TEKNIK KOMPUTER" <<endl;
}
else if(NIM == "A21")
{
cout << "NIM :"<<NIM<<NIM1<<" Prodi : FIK D3 TEKNIK KOMPUTER" <<endl;
}
else if(NIM == "B11")
{
cout << "NIM :"<<NIM<<NIM1<<" Prodi : FEB S1 MAnagement" <<endl;
}
else if(NIM == "B21")
{
cout << "NIM :"<<NIM<<NIM1<<" Prodi : FEB D3 MAnagement" <<endl;
}
else
{
cout <<"NIM:"<< NIM << " Prodi :..." <<endl;
}
cout <<"================================================"<<endl;
cout << endl; cin.ignore();
cout << "Mata kuliah 1 :"; getline(cin,matkul1);
cout << "SKS :";
cin >> sks1;
counter = 0;
do
{
cout << "status : [T/P/TP] :";
cin >> stats;
if (stats == "T")
{
cout << " Nilai mid :";
cin >> N_mid1_1;
cout << " bobot% : ";
cin >> bobot1_11;
cout <<endl;
cout << " Nilai UAS :";
cin >> N_uas1_1;
cout << " bobot% : ";
cin >> bobot1_12;
cout << endl;
cout << " Nilai Tugas :";
cin >> N_tgs1_1;
cout << " bobot% : ";
cin >> bobot1_13;
cout << endl;
}
else if (stats == "P")
{
cout << " Nilai mid :";
cin >> N_mid1_1;
cout << " bobot% : ";
cin >> bobot1_11;
cout <<endl;
cout << " Nilai UAS :";
cin >> N_uas1_1;
cout << " bobot% : ";
cin >> bobot1_12;
cout << endl;
cout << " Nilai Tugas :";
cin >> N_tgs1_1;
cout << " bobot% : ";
cin >> bobot1_13;
cout << endl;
}
else if (stats == "TP")
{
cout << " Nilai mid Teori :";
cin >> N_mid1_1;
cout << " bobot% : ";
cin >> bobot1_11;
cout <<endl;
cout << " Nilai mid praktek :";
cin >> N_mid1_2;
cout << "bobot% :";
cin >> bobot1_21;
cout << endl;
cout << " Nilai UAS Teori :";
cin >> N_uas1_1;
cout << " bobot% : ";
cin >> bobot1_12;
cout << endl;
cout << " Nilai UAS praktek :";
cin >> N_uas1_2;
cout << "bobot% :";
cin >> bobot1_22;
cout << endl;
cout << " Nilai Tugas Teori:";
cin >> N_tgs1_1;
cout << " bobot% : ";
cin >> bobot1_13;
cout << endl;
cout << " Nilai Tugas praktek :";
cin >> N_tgs1_2;
cout << "bobot% :";
cin >> bobot1_23;
cout << endl;
}
else
{
cout << " Inputan anda salah , silahkan coba lagi ... ";
}
totbot1= bobot1_11 + bobot1_12+ bobot1_13 + bobot1_21 + bobot1_22 + bobot1_23 ;
cout << endl;
if (totbot1 > 100)
{
cout << " Penginputan bobot nilai anda salah, silahkan input lagi;" << endl;
cout << ulang;
counter ++;
}
else
{
ulang = ' ';
cout << ulang;
}
}while(ulang == 'Y');
skor1 = (N_mid1_1 * bobot1_11/100) + (N_mid1_2 * bobot1_21/100) + (N_uas1_1 * bobot1_12/100) + (N_uas1_2 * bobot1_22/100) + (N_tgs1_1 * bobot1_13/100) + (N_tgs1_2 * bobot1_23/100);
cout << "skor :" <<skor1 <<endl;
cout << "huruf :";
if ( skor1 <= 100 && skor1 >=85)
{
cout << " A";
}
else if ( skor1 < 85 && skor1 >= 80)
{
cout << " A-";
}
else if ( skor1 < 80 && skor1 >=75)
{
cout << " B+";
}
else if (skor1 < 75 && skor1 >=70)
{
cout << " B";
}
else if ( skor1 < 70 && skor1 >=65)
{
cout << " B-";
}
else if ( skor1 < 65 && skor1 >= 60)
{
cout << " C+";
}
else if (skor1 < 60 && skor1 >=55)
{
cout << " C";
}
else if( skor1 < 55 && skor1 >=50)
{
cout << " C-";
}
else if ( skor1 < 50 && skor1 >= 40)
{
cout << " D";
}
else
{
cout << " E";
}
cout << endl;
cout << "==================================" << endl;
cout << endl; cin.ignore();
cout << "Mata kuliah 2 :"; getline(cin,matkul2);
cout << "SKS :";
cin >> sks2;
counter1 = 0;
do
{
cout << "status : [T/P/TP] :";
cin >> stats;
if (stats == "T")
{
cout << " Nilai mid :";
cin >> N_mid2_1;
cout << " bobot% : ";
cin >> bobot2_11;
cout <<endl;
cout << " Nilai UAS :";
cin >> N_uas2_1;
cout << " bobot% : ";
cin >> bobot2_12;
cout << endl;
cout << " Nilai Tugas :";
cin >> N_tgs2_1;
cout << " bobot% : ";
cin >> bobot2_13;
cout << endl;
}
else if (stats == "P")
{
cout << " Nilai mid :";
cin >> N_mid2_1;
cout << " bobot% : ";
cin >> bobot2_11;
cout <<endl;
cout << " Nilai UAS :";
cin >> N_uas2_1;
cout << " bobot% : ";
cin >> bobot2_12;
cout << endl;
cout << " Nilai Tugas :";
cin >> N_tgs2_1;
cout << " bobot% : ";
cin >> bobot2_13;
cout << endl;
}
else if (stats == "TP")
{
cout << " Nilai mid Teori :";
cin >> N_mid2_1;
cout << " bobot% : ";
cin >> bobot2_11;
cout <<endl;
cout << " Nilai mid praktek :";
cin >> N_mid2_2;
cout << "bobot% :";
cin >> bobot2_21;
cout << endl;
cout << " Nilai UAS Teori :";
cin >> N_uas2_1;
cout << " bobot% : ";
cin >> bobot2_12;
cout << endl;
cout << " Nilai UAS praktek :";
cin >> N_uas2_2;
cout << "bobot% :";
cin >> bobot2_22;
cout << endl;
cout << " Nilai Tugas Teori:";
cin >> N_tgs2_1;
cout << " bobot% : ";
cin >> bobot2_13;
cout << endl;
cout << " Nilai Tugas praktek :";
cin >> N_tgs2_2;
cout << "bobot% :";
cin >> bobot2_23;
cout << endl;
}
else
{
cout << " Inputan anda salah , silahkan coba lagi ... ";
}
totbot2= bobot2_11 + bobot2_12+ bobot2_13 + bobot2_21 + bobot2_22 + bobot2_23 ;
cout << endl;
if (totbot2 > 100)
{
cout << " Penginputan bobot nilai anda salah, silahkan input lagi;" << endl;
cout << ulang1;
counter1 ++;
}
else
{
ulang1 = ' ';
cout << ulang1;
}
}while(ulang1 == 'Y');
skor2 = (N_mid2_1 * bobot2_11/100) + (N_mid2_2 * bobot2_21/100) + (N_uas2_1 * bobot2_12/100) + (N_uas2_2 * bobot2_22/100) + (N_tgs2_1 * bobot2_13/100) + (N_tgs2_2 * bobot2_23/100);
cout << "skor :" <<skor2 <<endl;
cout << "huruf :";
if ( skor2 <= 100 && skor2 >=85 )
{
cout << " A";
}
else if ( skor2 < 85 && skor2 >= 80)
{
cout << " A-";
}
else if ( skor2 < 80 && skor2 >=75)
{
cout << " B+";
}
else if (skor2 < 75 && skor2 >=70)
{
cout << " B";
}
else if ( skor2 < 70 && skor2 >=65)
{
cout << " B-";
}
else if ( skor2 < 65 && skor2 >= 60)
{
cout << " C+";
}
else if (skor2 < 60 && skor2 >=55)
{
cout << " C";
}
else if( skor2 < 55 && skor2 >=50)
{
cout << " C-";
}
else if ( skor2 < 50 && skor2 >= 40)
{
cout << " D";
}
else
{
cout << " E";
}
cout << endl;
cout << "==================================" << endl;
cout << endl; cin.ignore();
cout << "Mata kuliah 3 :"; getline(cin,matkul3);
cout << "SKS :";
cin >> sks3;
counter2 = 0;
do
{
cout << "status : [T/P/TP] :";
cin >> stats;
if (stats == "T")
{
cout << " Nilai mid :";
cin >> N_mid3_1;
cout << " bobot% : ";
cin >> bobot3_11;
cout <<endl;
cout << " Nilai UAS :";
cin >> N_uas3_1;
cout << " bobot% : ";
cin >> bobot3_12;
cout << endl;
cout << " Nilai Tugas :";
cin >> N_tgs3_1;
cout << " bobot% : ";
cin >> bobot3_13;
cout << endl;
}
else if (stats == "P")
{
cout << " Nilai mid :";
cin >> N_mid3_1;
cout << " bobot% : ";
cin >> bobot3_11;
cout <<endl;
cout << " Nilai UAS :";
cin >> N_uas3_1;
cout << " bobot% : ";
cin >> bobot3_12;
cout << endl;
cout << " Nilai Tugas :";
cin >> N_tgs3_1;
cout << " bobot% : ";
cin >> bobot3_13;
cout << endl;
}
else if (stats == "TP")
{
cout << " Nilai mid Teori :";
cin >> N_mid3_1;
cout << " bobot% : ";
cin >> bobot3_11;
cout <<endl;
cout << " Nilai mid praktek :";
cin >> N_mid3_2;
cout << "bobot% :";
cin >> bobot3_21;
cout << endl;
cout << " Nilai UAS Teori :";
cin >> N_uas3_1;
cout << " bobot% : ";
cin >> bobot3_12;
cout << endl;
cout << " Nilai UAS praktek :";
cin >> N_uas3_2;
cout << "bobot% :";
cin >> bobot3_22;
cout << endl;
cout << " Nilai Tugas Teori:";
cin >> N_tgs3_1;
cout << " bobot% : ";
cin >> bobot3_13;
cout << endl;
cout << " Nilai Tugas praktek :";
cin >> N_tgs3_2;
cout << "bobot% :";
cin >> bobot3_23;
cout << endl;
}
else
{
cout << " Inputan anda salah , silahkan coba lagi ... ";
}
totbot3= bobot3_11 + bobot3_12+ bobot3_13 + bobot3_21 + bobot3_22 + bobot3_23 ;
cout << endl;
if (totbot3 > 100)
{
cout << " Penginputan bobot nilai anda salah, silahkan input lagi;" << endl;
cout << ulang2;
counter2 ++;
}
else
{
ulang2 = ' ';
cout << ulang2;
}
}while(ulang2 == 'Y');
skor3 = (N_mid3_1 * bobot3_11/100) + (N_mid3_2 * bobot3_21/100) + (N_uas3_1 * bobot2_12/100) + (N_uas3_2 * bobot3_22/100) + (N_tgs3_1 * bobot3_13/100) + (N_tgs3_2 * bobot3_23/100);
cout << "skor :" <<skor3 <<endl;
cout << "huruf :";
if ( skor3 <= 100 && skor3 >=85 )
{
cout << " A";
}
else if ( skor3 < 85 && skor3 >= 80)
{
cout << " A-";
}
else if ( skor2 < 80 && skor2 >=75)
{
cout << " B+";
}
else if (skor3 < 75 && skor3 >=70)
{
cout << " B";
}
else if ( skor3 < 70 && skor3 >=65)
{
cout << " B-";
}
else if ( skor3 < 65 && skor3 >= 60)
{
cout << " C+";
}
else if (skor3 < 60 && skor3 >=55)
{
cout << " C";
}
else if( skor3 < 55 && skor3 >=50)
{
cout << " C-";
}
else if ( skor3 < 50 && skor3 >= 40)
{
cout << " D";
}
else
{
cout << " E";
}
cout << endl;
cout << "==================================" << endl;
cout << endl; cin.ignore();
cout << "Mata kuliah 4 :"; getline(cin,matkul4);
cout << "SKS :";
cin >> sks4;
counter3 = 0;
do
{
cout << "status : [T/P/TP] :";
cin >> stats;
if (stats == "T")
{
cout << " Nilai mid :";
cin >> N_mid4_1;
cout << " bobot% : ";
cin >> bobot4_11;
cout <<endl;
cout << " Nilai UAS :";
cin >> N_uas4_1;
cout << " bobot% : ";
cin >> bobot4_12;
cout << endl;
cout << " Nilai Tugas :";
cin >> N_tgs4_1;
cout << " bobot% : ";
cin >> bobot4_13;
cout << endl;
}
else if (stats == "P")
{
cout << " Nilai mid :";
cin >> N_mid4_1;
cout << " bobot% : ";
cin >> bobot4_11;
cout <<endl;
cout << " Nilai UAS :";
cin >> N_uas4_1;
cout << " bobot% : ";
cin >> bobot4_12;
cout << endl;
cout << " Nilai Tugas :";
cin >> N_tgs4_1;
cout << " bobot% : ";
cin >> bobot4_13;
cout << endl;
}
else if (stats == "TP")
{
cout << " Nilai mid Teori :";
cin >> N_mid4_1;
cout << " bobot% : ";
cin >> bobot4_11;
cout <<endl;
cout << " Nilai mid praktek :";
cin >> N_mid4_2;
cout << "bobot% :";
cin >> bobot4_21;
cout << endl;
cout << " Nilai UAS Teori :";
cin >> N_uas4_1;
cout << " bobot% : ";
cin >> bobot4_12;
cout << endl;
cout << " Nilai UAS praktek :";
cin >> N_uas4_2;
cout << "bobot% :";
cin >> bobot4_22;
cout << endl;
cout << " Nilai Tugas Teori:";
cin >> N_tgs4_1;
cout << " bobot% : ";
cin >> bobot4_13;
cout << endl;
cout << " Nilai Tugas praktek :";
cin >> N_tgs4_2;
cout << "bobot% :";
cin >> bobot4_23;
cout << endl;
}
else
{
cout << " Inputan anda salah , silahkan coba lagi ... ";
}
totbot4= bobot4_11 + bobot4_12+ bobot4_13 + bobot4_21 + bobot4_22 + bobot4_23 ;
cout << endl;
if (totbot4 > 100)
{
cout << " Penginputan bobot nilai anda salah, silahkan input lagi;" << endl;
cout << ulang3;
counter3 ++;
}
else
{
ulang3 = ' ';
cout << ulang3;
}
}while(ulang3 == 'Y');
skor4 = (N_mid4_1 * bobot4_11/100) + (N_mid4_2 * bobot4_21/100) + (N_uas4_1 * bobot4_12/100) + (N_uas4_2 * bobot4_22/100) + (N_tgs4_1 * bobot4_13/100) + (N_tgs4_2 * bobot4_23/100);
cout << "skor :" <<skor4 <<endl;
cout << "huruf :";
if ( skor4 <= 100 && skor4 >=85 )
{
cout << " A";
}
else if ( skor4 < 85 && skor4 >= 80)
{
cout << " A-";
}
else if ( skor4 < 80 && skor4 >=75)
{
cout << " B+";
}
else if (skor4 < 75 && skor4 >=70)
{
cout << " B";
}
else if ( skor4 < 70 && skor4 >=65)
{
cout << " B-";
}
else if ( skor4 < 65 && skor4 >= 60)
{
cout << " C+";
}
else if (skor4 < 60 && skor4 >=55)
{
cout << " C";
}
else if( skor4 < 55 && skor4 >=50)
{
cout << " C-";
}
else if ( skor4 < 50 && skor4 >= 40)
{
cout << " D";
}
else
{
cout << " E";
}
cout << endl;
cout << "==================================" << endl;
cout << endl; cin.ignore();
cout << "Mata kuliah 5 :"; getline(cin,matkul5);
cout << "SKS :";
cin >> sks5;
counter4 = 0;
do
{
cout << "status : [T/P/TP] :";
cin >> stats;
if (stats == "T")
{
cout << " Nilai mid :";
cin >> N_mid5_1;
cout << " bobot% : ";
cin >> bobot5_11;
cout <<endl;
cout << " Nilai UAS :";
cin >> N_uas5_1;
cout << " bobot% : ";
cin >> bobot5_12;
cout << endl;
cout << " Nilai Tugas :";
cin >> N_tgs5_1;
cout << " bobot% : ";
cin >> bobot5_13;
cout << endl;
}
else if (stats == "P")
{
cout << " Nilai mid :";
cin >> N_mid5_1;
cout << " bobot% : ";
cin >> bobot5_11;
cout <<endl;
cout << " Nilai UAS :";
cin >> N_uas5_1;
cout << " bobot% : ";
cin >> bobot5_12;
cout << endl;
cout << " Nilai Tugas :";
cin >> N_tgs5_1;
cout << " bobot% : ";
cin >> bobot5_13;
cout << endl;
}
else if (stats == "TP")
{
cout << " Nilai mid Teori :";
cin >> N_mid5_1;
cout << " bobot% : ";
cin >> bobot5_11;
cout <<endl;
cout << " Nilai mid praktek :";
cin >> N_mid5_2;
cout << "bobot% :";
cin >> bobot5_21;
cout << endl;
cout << " Nilai UAS Teori :";
cin >> N_uas5_1;
cout << " bobot% : ";
cin >> bobot5_12;
cout << endl;
cout << " Nilai UAS praktek :";
cin >> N_uas5_2;
cout << "bobot% :";
cin >> bobot5_22;
cout << endl;
cout << " Nilai Tugas Teori:";
cin >> N_tgs5_1;
cout << " bobot% : ";
cin >> bobot5_13;
cout << endl;
cout << " Nilai Tugas praktek :";
cin >> N_tgs5_2;
cout << "bobot% :";
cin >> bobot5_23;
cout << endl;
}
else
{
cout << " Inputan anda salah , silahkan coba lagi ... ";
}
totbot5= bobot5_11 + bobot5_12+ bobot5_13 + bobot5_21 + bobot5_22 + bobot5_23 ;
cout << endl;
if (totbot5 > 100)
{
cout << " Penginputan bobot nilai anda salah, silahkan input lagi;" << endl;
cout << ulang4;
counter4 ++;
}
else
{
ulang4 = ' ';
cout << ulang4;
}
}while(ulang4 == 'Y');
skor5 = (N_mid5_1 * bobot5_11/100) + (N_mid5_2 * bobot5_21/100) + (N_uas5_1 * bobot5_12/100) + (N_uas5_2 * bobot5_22/100) + (N_tgs5_1 * bobot5_13/100) + (N_tgs5_2 * bobot5_23/100);
cout << "skor :" <<skor5 <<endl;
cout << "huruf :";
if ( skor5 <= 100 && skor5 >=85 )
{
cout << " A";
}
else if ( skor5 < 85 && skor5 >= 80)
{
cout << " A-";
}
else if ( skor5 < 80 && skor5 >=75)
{
cout << " B+";
}
else if (skor5 < 75 && skor5 >=70)
{
cout << " B";
}
else if ( skor5 < 70 && skor5 >=65)
{
cout << " B-";
}
else if ( skor5 < 65 && skor5 >= 60)
{
cout << " C+";
}
else if (skor5 < 60 && skor5 >=55)
{
cout << " C";
}
else if( skor5 < 55 && skor5 >=50)
{
cout << " C-";
}
else if ( skor5 < 50 && skor5 >= 40)
{
cout << " D";
}
else
{
cout << " E";
}
cout << endl;
cout << "==================================" << endl;
cout << endl; cin.ignore();
cout << " Kartu Akan dicetak tunggu sebentar..." <<endl;
system("pause");
cout << endl;
cout << "======================================================================"<<endl;
cout << " Kartu Hasil Studi "<<endl;
cout << " Universitas Dian Nuswantoro "<<endl;
cout << "======================================================================"<<endl;
cout << "NAMA :"<< NAMA <<endl;
cout << "NIM :" <<NIM <<NIM1;
if(NIM == "A11")
{
cout <<" Prodi : FIK S1 TEKNIK KOMPUTER" <<endl;
}
else if(NIM == "A21")
{
cout << " Prodi : FIK D3 TEKNIK KOMPUTER" <<endl;
}
else if(NIM == "B11")
{
cout << " Prodi : FEB S1 MAnagement" <<endl;
}
else if(NIM == "B21")
{
cout << " Prodi : FEB D3 MAnagement" <<endl;
}
else
{
cout << " Prodi :..." <<endl;
}
cout << " Mata Kuliah SKS Nilai huruf " <<endl;
cout <<matkul1 ;
cout<<" "<<sks1 <<" "<< skor1 ;
if ( skor1 <= 100 && skor1 >=85)
{
cout << " A"<<endl;
}
else if ( skor1 < 85 && skor1 >= 80)
{
cout << " A-"<<endl;
}
else if ( skor1 < 80 && skor1 >=75)
{
cout << " B+"<<endl;
}
else if (skor1 < 75 && skor1 >=70)
{
cout << " B"<<endl;
}
else if ( skor1 < 70 && skor1 >=65)
{
cout << " B-"<<endl;
}
else if ( skor1 < 65 && skor1 >= 60)
{
cout << " C+"<<endl;
}
else if (skor1 < 60 && skor1 >=55)
{
cout << " C"<<endl;
}
else if( skor1 < 55 && skor1 >=50)
{
cout << " C-"<<endl;
}
else if ( skor1 < 50 && skor1 >= 40)
{
cout << " D"<<endl;
}
else
{
cout << " E" <<endl;
}
cout <<matkul2 ;
cout<<" "<<sks2 <<" "<< skor2 ;
if ( skor2 <= 100 && skor2 >=85)
{
cout << " A"<<endl;
}
else if ( skor2 < 85 && skor2 >= 80)
{
cout << " A-"<<endl;
}
else if ( skor2 < 80 && skor2 >=75)
{
cout << " B+"<<endl;
}
else if (skor2 < 75 && skor2 >=70)
{
cout << " B"<<endl;
}
else if ( skor2 < 70 && skor2 >=65)
{
cout << " B-"<<endl;
}
else if ( skor2 < 65 && skor2 >= 60)
{
cout << " C+"<<endl;
}
else if (skor2 < 60 && skor2 >=55)
{
cout << " C"<<endl;
}
else if( skor2 < 55 && skor2 >=50)
{
cout << " C-"<<endl;
}
else if ( skor2< 50 && skor2 >= 40)
{
cout << " D"<<endl;
}
else
{
cout << " E" <<endl;
}
cout <<matkul3 ;
cout<<" "<<sks3 <<" "<< skor3 ;
if ( skor3 <= 100 && skor3 >=85)
{
cout << " A"<<endl;
}
else if ( skor3 < 85 && skor3 >= 80)
{
cout << " A-"<<endl;
}
else if ( skor3 < 80 && skor3 >=75)
{
cout << " B+"<<endl;
}
else if (skor3 < 75 && skor3 >=70)
{
cout << " B"<<endl;
}
else if ( skor3 < 70 && skor3 >=65)
{
cout << " B-"<<endl;
}
else if ( skor3 < 65 && skor3 >= 60)
{
cout << " C+"<<endl;
}
else if (skor3 < 60 && skor3 >=55)
{
cout << " C"<<endl;
}
else if( skor3 < 55 && skor3 >=50)
{
cout << " C-"<<endl;
}
else if ( skor3< 50 && skor3 >= 40)
{
cout << " D"<<endl;
}
else
{
cout << " E" <<endl;
}
cout <<matkul4 ;
cout<<" "<<sks4 <<" "<< skor4 ;
if ( skor4 <= 100 && skor4 >=85)
{
cout << " A"<<endl;
}
else if ( skor4 < 85 && skor4 >= 80)
{
cout << " A-"<<endl;
}
else if ( skor4 < 80 && skor4 >=75)
{
cout << " B+"<<endl;
}
else if (skor4 < 75 && skor4 >=70)
{
cout << " B"<<endl;
}
else if ( skor4 < 70 && skor4 >=65)
{
cout << " B-"<<endl;
}
else if ( skor4 < 65 && skor4 >= 60)
{
cout << " C+"<<endl;
}
else if (skor4 < 60 && skor4 >=55)
{
cout << " C"<<endl;
}
else if( skor4 < 55 && skor4 >=50)
{
cout << " C-"<<endl;
}
else if ( skor4< 50 && skor4 >= 40)
{
cout << " D"<<endl;
}
else
{
cout << " E" <<endl;
}
cout <<matkul5 ;
cout<<" "<<sks5 <<" "<< skor5 ;
if ( skor5 <= 100 && skor5 >=85)
{
cout << " A"<<endl;
}
else if ( skor5 < 85 && skor5 >= 80)
{
cout << " A-"<<endl;
}
else if ( skor5 < 80 && skor5 >=75)
{
cout << " B+"<<endl;
}
else if (skor5 < 75 && skor5 >=70)
{
cout << " B"<<endl;
}
else if ( skor5 < 70 && skor5 >=65)
{
cout << " B-"<<endl;
}
else if ( skor5 < 65 && skor5 >= 60)
{
cout << " C+"<<endl;
}
else if (skor5 < 60 && skor5 >=55)
{
cout << " C"<<endl;
}
else if( skor5 < 55 && skor5 >=50)
{
cout << " C-"<<endl;
}
else if ( skor5< 50 && skor5 >= 40)
{
cout << " D"<<endl;
}
else
{
cout << " E" <<endl;
}
cout <<"======================================================================="<<endl;
totsks = sks1 + sks2 +sks3+ sks4 + sks5;
totskor= skor1 +skor2+ skor3+ skor4 +skor5;
cout << "Total SKS :" << totsks <<endl;
cout << "Total Nilai :" << totskor <<endl;
ips= totskor / totsks;
cout << "Index Prestasi Semester :" <<ips <<endl;
cout <<"========================================================================"<<endl;
cout << "Apakahada Mahasiswa lagi ??" <<endl;
cout << "[Y/T] :";
cin >> ulang5;
cout <<endl;
counter++;
}while(ulang5 == 'Y');
system("pause");
}
Comments
Post a Comment