#include<iostream.h>
int main()
{
int nilai;
cout<<"Masukan Nilai : ";
cin>>nilai;
int data_mhs;
cout<<"Masukan NPM : ";
cin>>data_mhs;
switch(data_mhs)
{
case 1111901:
cout<<"NAMA : ENDANG RISMAWATI HALAWA"<<endl;
cout<<"KELAS : TI_M1115"<<endl;
cout<<"JURUSAN : TEKNIK INFORMATIKA"<<endl;
cout<<"M.KULIAH : PEMOGRAMAN BERORIENTASI OBJEK"<<endl;
cout<<"KAMPUS : STMIK BUDIDARMA MEDAN "<<endl;
}
if(nilai>=0 && nilai<=44)
cout<<"Nilai E"<<endl;
else if(nilai>=45 && nilai<=55)
cout<<"Nilai D"<<endl;
else if (nilai>=56 && nilai<=67)
cout<<"Nilai C"<<endl;
else if (nilai>=68 && nilai<=79)
cout<<"Nilai B"<<endl;
else if (nilai>=80 && nilai<=100)
cout<<"Nilai A"<<endl;
else
cout<<"Masukan nilai [0-100]"<<endl;
}
Selasa, 18 November 2014
Langganan:
Postingan (Atom)