#include<iostream>
using namespace std;
int main()
{
int kuis1, kuis2, kuis3, laporan1, laporan2, tugas1, tugas2, responsi;
float rata2, tugastotal, kuistotal, laporantotal, responsitotal, nilaiakhir;
cout << " Kuis 1\t : ";
cin>>kuis1;
cout << " Kuis 2\t : ";
cin>>kuis2;
cout << " Kuis 3\t : ";
cin>>kuis3;
cout << " Laporan 1\t: ";
cin>>laporan1;
cout << " Laporan 2\t: ";
cin>>laporan2;
cout << " Tugas 1\t: ";
cin>>tugas1;
cout << " Tugas 2\t: ";
cin>>tugas2;
cout << " Responsi\t: ";
cin>>responsi;
rata2 = (kuis1 + kuis2 + kuis3 + laporan1 + laporan2 + tugas1 + tugas2 + responsi)/8;
kuistotal = 0.20 * ((kuis1 + kuis2 + kuis3)/3);
tugastotal = 0.15 * ((tugas1 + tugas2)/2);
laporantotal = 0.25 * ((laporan1 + laporan2)/2);
responsitotal = 0.40 * responsi;
nilaiakhir = kuistotal + tugastotal + laporantotal + responsitotal;
cout << " Rata-Rata\t:"<< rata2<<endl;
cout << " Nilai Akhir\t:"<<nilaiakhir<<endl;
}
Hasil Tampilan |
0 komentar:
Posting Komentar