Tugas2.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { int Absen, Tugas, UTS, UAS; float Total; Total = (Absen * 0.1) + (Tugas * 0.2) + (UTS * 0.3) + (UAS * 0.4); 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); Total = (Absen * 0.1) + (Tugas * 0.2) + (UTS * 0.3) + (UAS * 0.4); cout<<"----------------------------------"<<endl; printf("Nilai Total adalah : %.2f \n",Total); cout<<"----------------------------------"<<endl; cout<<"Nama : Nur Izzati Istiqlal"<<endl; cout<<"NIM : 1620230004"<<endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines