#include
main() {
char nilaih ;
int bobot,nilai;
cout<<"Nilai Mahasiswa"; cout<<"\nMasukkan Nilai Mahasiswa =";cin>>nilai;
if(nilai>=80&&nilai<=100) nilaih ='A' ; else if(nilai>=70&&nilai<=79) nilaih ='B'; else if(nilai>=60&&nilai<=69) nilaih ='C'; else if(nilai>=50&&nilai<=59) nilaih ='D'; else if(nilai>=0&&nilai<=49)
nilaih ='E';
else
nilaih='X';
cout<<"Nilai huruf mahasiswa = "<
if (nilaih=='A')
bobot= 4;
if (nilaih=='B')
bobot= 3;
if (nilaih=='C')
bobot= 2;
if (nilaih=='D')
bobot= 1;
if (nilaih=='E')
bobot= 0;
cout<<"\nDengan Bobot Nilai ="<
cout << endl;
cout << endl;
cout << endl;
cout << "\ncreated by: Zeptifa Wardhani " ;
getch();}
0 comments:
Post a Comment