//Penerimaan Mahasiswa Baru
#include <iostream.h>
#include <conio.h>
void main ()
{
int nilai_tugas , nilai_quis , nilai_uts , nilai_uas ;
float total_nilai;
nilai_tugas = 75 ;
nilai_quis = 80 ;
nilai_uts = 78 ;
nilai_uas = 85 ;
total_nilai = (0.2*nilai_tugas)+(0.15*nilai_quis)+(0.3*nilai_uts)+(0.35*nilai_uas);
cout<<"Nilai Akhir Mahasiswa"<<endl<<endl;
cout<<"Nilai Tugas = "<<nilai_tugas<<endl;
cout<<"Nilai Quis = "<<nilai_quis<<endl;
cout<<"nilai UTS = "<<nilai_uts<<endl;
cout<<"Nilai UAS = "<<nilai_uas<<endl<<endl;
cout<<"Total Nilai = "<<total_nilai<<endl<<endl;
getch ();
}
Rabu, 17 April 2013
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar