// Menghitung Nilai Akhir //
#include
#include
void main()
{
float UTS , Tugas , UAS ;
float NilaiAkhir ;
char nama[30];
clrscr();
cout<<"\n\n Nama Mahasiswa = ";
cin.getline(nama,100);
cout<<" Nilai UTS = ";
cin>>UTS;
cout<<" Nilai Tugas = ";
cin>>Tugas;
cout<<" Nilai UAS = ";
cin>>UAS;
NilaiAkhir =(0.35 * UTS) + (0.2 * Tugas) + (0.45 * UAS);
cout<<"\n\n Nilai Akhir "<
}
HASIL PROGRAM 4
|
No comments:
Post a Comment