Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- #include <windows.h>
- using namespace std;
- int main()
- {
- system("color 5E");
- cout<<" __________________________________________________________________"<<endl;
- cout<<"| |"<<endl;
- cout<<"| ~~~~~~~~ PROGRAM PENENTUAN BEASISWA BIDIKMISI MAHASISWA ~~~~~~~~ |"<<endl;
- cout<<"| ~~~~~~~~~~~~~~~~~~~~UPN 'VETERAN' JAWA TIMUR~~~~~~~~~~~~~~~~~~~~ |"<<endl;
- cout<<"|__________________________________________________________________|"<<endl;
- cout<<"********************************************************************"<<endl;
- char nama[30],alamat[50],jurusan[10];
- cout<<"Isi Data Diri"<<endl;
- cout<<"Nama =";
- gets(nama);
- cout<<"Alamat =";
- gets(alamat);
- cout<<"Jurusan =";
- gets(jurusan);
- cout<<"********************************************************************"<<endl;
- cout<<"__________________PERATURAN PENGISIAN__________________"<<endl;
- cout<<"_________________1.Jawab dengan Jujur__________________"<<endl;
- cout<<"____________2.Isi Jawaban Sesuai Kode Nomer____________"<<endl;
- cout<<"********************************************************************"<<endl;
- int total_point, total_rupiah, a, b, c, d, e, f;
- cout<<"JUMLAH ORANG TUA YANG MASIH ADA"<<endl;
- cout<<"1.Lengkap"<<endl;
- cout<<"2.Tidak Lengkap"<<endl;
- cout<<"3.Tidak Ada"<<endl;
- cout<<"JAWABAN :";
- cin>>a;
- cout<<"____________________________________________________________"<<endl;
- cout<<"GAJI ORANG TUA"<<endl;
- cout<<"1.> 1.500.001"<<endl;
- cout<<"2.500.001-1.500.000"<<endl;
- cout<<"3.< 500.000"<<endl;
- cout<<"JAWABAN :";
- cin>>b;
- cout<<"____________________________________________________________"<<endl;
- cout<<"JUMLAH SAUDARA YANG DITANGGUNG"<<endl;
- cout<<"1.0"<<endl;
- cout<<"2.< 3"<<endl;
- cout<<"3.> 3"<<endl;
- cout<<"JAWABAN :";
- cin>>c;
- cout<<"____________________________________________________________"<<endl;
- cout<<"KEPEMILIKAN RUMAH"<<endl;
- cout<<"1.Hak Milik"<<endl;
- cout<<"2.Menumpang"<<endl;
- cout<<"3.Kost/Kontrak"<<endl;
- cout<<"JAWABAN :";
- cin>>d;
- cout<<"____________________________________________________________"<<endl;
- cout<<"TANGGUNGAN LISTRIK PER BULAN"<<endl;
- cout<<"1.> 100.001"<<endl;
- cout<<"2.50.001-100.000"<<endl;
- cout<<"3.< 50.000"<<endl;
- cout<<"JAWABAN :";
- cin>>e;
- cout<<"____________________________________________________________"<<endl;
- cout<<"JUMLAH KENDARAAN YANG DIMILIKI"<<endl;
- cout<<"1.Sepedah Motor >= 2"<<endl;
- cout<<"2.Sepedah Motor = 1"<<endl;
- cout<<"3.Tidak Punya"<<endl;
- cout<<"JAWABAN :";
- cin>>f;
- cout<<"____________________________________________________________"<<endl;
- cout<<"********************************************************************"<<endl;
- system ("cls");
- total_point = a + b + c + d + e + f;
- total_rupiah = total_point*750000;
- cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~BUKTI LOLOS~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl;
- cout<<"Nama :"<<nama<<endl;
- cout<<"Alamat :"<<alamat<<endl;
- cout<<"Jurusan :"<<jurusan<<endl;
- if(total_point>=7&&total_point<=18){
- cout<<("SELAMAT ANDA TELAH LOLOS BEASISWA BIDIKMISI")<<endl;
- cout<<"TOTAL BEASISWA YANG ANDA DAPAT SEBESAR RP."<<total_rupiah<<endl;
- cout<<"********************************************************************"<<endl;
- }
- else if (total_point<7||total_point>18){
- cout<<("MOHON MAAF ANDA TIDAK LOLOS BEASISWA BIDIKMISI")<<endl;
- cout<<"********************************************************************"<<endl;
- }
- int*total1;
- total1=&total_point;
- cout<<"Alamat memori Total Point adalah="<<total1<<endl;
- int*total2;
- total2=&total_rupiah;
- cout<<"Alamat memori Total Rupiah adalah="<<total2<<endl;
- cout<<"\n";
- cout<<"Kode " << total1 << " dan " << total2 << " Merupakan hasil memori penentuan beasiswa bidikmisi";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement