Tugas 2.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { cout << "---------------------------------"<<endl; puts ("Program Menghitung Nilai Akhir"); cout << "---------------------------------"<<endl; 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; printf ("Masukan Nilai Absen (10%): %.2f \n", Nilai_Absen); printf ("Masukan Nilai Tugas (20%): %.2f \n", Nilai_Tugas); printf ("Masukan Nilai UTS (30%): %.2f \n", Nilai_UTS); printf ("Masukan Nilai UAS (40%): %.2f \n", Nilai_UAS); cout << "---------------------------------"<<endl; printf ("Nilai Total Adalah : %.2f \n", Total); cout << "---------------------------------"<<endl; cout << "Nama : Syahazka Abna Fadillah"<<endl; cout << "NIM : 1620230008"<<endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines