/*-----------------------------------*/
/*program dengan file header sendiri*/
/*----------------------------------*/
#include <stdio.h>
#include <conio.h>
#include <iostream.h>
#include "hitnilai.h"
mulai()
awal
int absen,tugas1,UTS1,UAS1,nilai,absensi,tugas2,UTS2,UAS2,nilaiakhir;
hapus();
warna(4);
tampil("\nPROGRAM MENGHITUNG NILAI AKHIR MATA KULIAH\n");
cout<<endl;
cout<<"Masukkan Nilai Absensi : ";cin>>absen;
cout<<"Masukkan Nilai Tugas : ";cin>>tugas1;
cout<<"Masukkan Nilai U.T.S : ";cin>>UTS1;
cout<<"Masukkan Nilai U.A.S : ";cin>>UAS1;
absensi = absen*10/100;
tugas2 = tugas1*20/100;
UTS2 = UTS1*30/100;
UAS2 = UAS1*40/100;
nilaiakhir = absensi+tugas2+UTS2+UAS2;
cout<<endl;
cout<<"----------------------------------------------------";
cout<<endl;
cout<<"\tNilai Murni Absensi = "<<absen;
cout<<" * 10% = "<<absensi<<endl;
cout<<"\tNilai Murni Tugas = "<<tugas1;
cout<<" * 20% = "<<tugas2<<endl;
cout<<"\tNilai Murni U.T.S = "<<UTS1;
cout<<" * 30% = "<<UTS2<<endl;
cout<<"\tNilai Murni U.A.S = "<<UAS1;
cout<<" * 40% = "<<UAS2;
cout<<endl;
cout<<"\tNilai Akhir yang diperoleh sebesar : "<<nilaiakhir;
cout<<endl;
cout<<"-----------------------------------------------------";
tahan;
akhir
DOWN:OAD jangan lupa buat dahulu headernya . .
/*program dengan file header sendiri*/
/*----------------------------------*/
#include <stdio.h>
#include <conio.h>
#include <iostream.h>
#include "hitnilai.h"
mulai()
awal
int absen,tugas1,UTS1,UAS1,nilai,absensi,tugas2,UTS2,UAS2,nilaiakhir;
hapus();
warna(4);
tampil("\nPROGRAM MENGHITUNG NILAI AKHIR MATA KULIAH\n");
cout<<endl;
cout<<"Masukkan Nilai Absensi : ";cin>>absen;
cout<<"Masukkan Nilai Tugas : ";cin>>tugas1;
cout<<"Masukkan Nilai U.T.S : ";cin>>UTS1;
cout<<"Masukkan Nilai U.A.S : ";cin>>UAS1;
absensi = absen*10/100;
tugas2 = tugas1*20/100;
UTS2 = UTS1*30/100;
UAS2 = UAS1*40/100;
nilaiakhir = absensi+tugas2+UTS2+UAS2;
cout<<endl;
cout<<"----------------------------------------------------";
cout<<endl;
cout<<"\tNilai Murni Absensi = "<<absen;
cout<<" * 10% = "<<absensi<<endl;
cout<<"\tNilai Murni Tugas = "<<tugas1;
cout<<" * 20% = "<<tugas2<<endl;
cout<<"\tNilai Murni U.T.S = "<<UTS1;
cout<<" * 30% = "<<UTS2<<endl;
cout<<"\tNilai Murni U.A.S = "<<UAS1;
cout<<" * 40% = "<<UAS2;
cout<<endl;
cout<<"\tNilai Akhir yang diperoleh sebesar : "<<nilaiakhir;
cout<<endl;
cout<<"-----------------------------------------------------";
tahan;
akhir
DOWN:OAD jangan lupa buat dahulu headernya . .
Tidak ada komentar:
Posting Komentar