#include <iostream>
using namespace std;
int main() {
//Nama : Muhammad Haeqal Ramadhan
//NIM : 3420230006
int absen, tugas, uts, uas;
float total;
cout<<"------------------------------------"<<endl;
cout<<"Program Menghitung Nilai Akhir"<<endl;
cout<<"------------------------------------"<<endl;
printf("Masukan nilai Absen (10%) : "); scanf("%d",&absen);
printf("\nMasukan nilai Tugas (20%) : "); scanf("%d",&tugas);
printf("\nMasukan nilai UTS (30%) : "); scanf("%d",&uts);
printf("\nMasukan nilai UAS (40%) : "); scanf("%d",&uas);
cout<<endl;
total = (absen * 0.1) + (tugas * 0.2) + (uts * 0.3) + (uas * 0.4);
cout<<"------------------------------------"<<endl;
printf("Nilai Total adalah : %.2f", total);
cout<<endl;
cout<<"------------------------------------"<<endl;
return 0;
}