#include <iostream>
using namespace std;
int main() {
int Absen, Tugas, UTS, UAS;
Absen = 100;
Tugas = 80;
UTS = 90;
UAS = 60;
float Nilai_Absen = Absen * 0.1;
float Nilai_Tugas = Tugas * 0.2;
float Nilai_UTS = UTS * 0.3;
float Nilai_UAS = UAS * 0.4;
float Total = Nilai_Absen + Nilai_Tugas + Nilai_UTS + Nilai_UAS;
puts ("----------------------------------");
puts ("Program Menghitung Nilai Akir");
puts ("----------------------------------");
printf ("Masukan Nilai Absen (10%): \n"); scanf("%d",&Absen);
printf ("Masukan Nilai Tugas (20%): \n"); scanf("%d",&Tugas);
printf ("Masukan Nilai UTS (30%): \n"); scanf("%d",&UTS);
printf ("Masukan Nilai UAS (40%): \n"); scanf("%d",&UAS);
cout<<"----------------------------------"<<endl;
printf ("Nilai Total Adalah : %.2f \n",Total);
puts ("----------------------------------");
cout<<"Nama : Muhammad Chairul Ramadhani"<<endl;
cout<<"Nim : 1620230015";
return 0;
}