#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;
cout<<"-----------------------------------"<<endl;
puts("Program Menghitung Nilai Akhir");
cout<<"-----------------------------------"<<endl;
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);
cout<<"-----------------------------------"<<endl;
cout<<"Nama: Syifa Asih Nirwana"<<endl;
cout<<"NIM : 1620230019"<<endl;
return 0;
}