#include
using namespace std;
class mahasiswa{
public:
int algoritma() {return krs_algoritma;}
int organisasi() {return krs_organisasi;}
int ski() {return krs_ski;}
int diskrit(){return krs_diskrit;}
int arab(){return krs_arab;}
int islam(){return krs_islam;}
int so(){return krs_so;}
int ppk(){return krs_ppk;}
void sks_algoritma(int);
void sks_organisasi(int);
void sks_ski(int);
void sks_diskrit(int);
void sks_arab(int);
void sks_islam(int);
void sks_so(int);
void sks_ppk(int);
private:
int krs_algoritma;
int krs_organisasi;
int krs_ski;
int krs_diskrit;
int krs_arab;
int krs_islam;
int krs_so;
int krs_ppk;
};
void mahasiswa::sks_algoritma(int x){krs_algoritma=x;}
void mahasiswa::sks_organisasi(int x){krs_organisasi=x;}
void mahasiswa::sks_ski(int x){krs_ski=x;}
void mahasiswa::sks_diskrit(int x){krs_diskrit=x;}
void mahasiswa::sks_arab(int x){krs_arab=x;}
void mahasiswa::sks_islam(int x){krs_islam=x;}
void mahasiswa::sks_so(int x){krs_so=x;}
void mahasiswa::sks_ppk(int x){krs_ppk=x;}
int main(){
mahasiswa pak_sumar, pak_awik, bu_herawati, pak_landung, tim, pak_mukalam, pak_bambang, tim_ppk;
pak_sumar.sks_algoritma(4);
pak_awik.sks_organisasi(3);
bu_herawati.sks_ski(2);
pak_landung.sks_diskrit(2);
tim.sks_arab(2);
pak_mukalam.sks_islam(2);
pak_bambang.sks_so(4);
tim_ppk.sks_ppk(1);
cout<<"NIM : 12651088"<
0 komentar:
Posting Komentar