TUGAS 2.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { int 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; puts("-----------------------------------"); puts("Program Menghitung Nilai Akhir"); puts("-----------------------------------"); 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); puts("-----------------------------------"); printf("Nilai Total Adalah : %.2f \n",Total); puts("-----------------------------------"); puts("Nama : Rosdiana Fitriyani"); puts("NIM : 1620230020"); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines