#include <iostream>
using namespace std;
int main() {
//Teknik Informatika
//Nama : Tomy setiawan
//NIM : 3420247021
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;
}