#include <iostream>
#include <iomanip> // For setting precision
using namespace std;
int main() {
float absen, tugas, uts, uas, total;
//Nama: Moh. hamda khoiro afwa
//Nim : 3420230022
// Input
cout << "------------------------------"<< endl;
cout << "Program Menghitung Nilai Akhir"<< endl;
cout << "------------------------------"<< endl;
cout << "Masukan nilai Absen (10%): "<<endl;
cin >> absen;
cout << "Masukan nilai Tugas (20%): "<<endl;
cin >> tugas;
cout << "Masukan nilai UTS (30%): "<<endl;
cin >> uts;
cout << "Masukan nilai UAS (40%): "<<endl;
cin >> uas;
// Calculation
total = (absen * 0.10) + (tugas * 0.20) + (uts * 0.30) + (uas * 0.40);
// Output
cout << "------------------------------"<< endl;
cout << "Nilai Total adalah : " << fixed << setprecision(2) << total << endl;
cout << "------------------------------"<< endl;
return 0;
}