Advertisement
Guest User

Untitled

a guest
Nov 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. #include <windows.h>
  4.  
  5. using namespace std;
  6.  
  7.  
  8. int main()
  9. {
  10. system("color 5E");
  11.  
  12. cout<<" __________________________________________________________________"<<endl;
  13. cout<<"| |"<<endl;
  14. cout<<"| ~~~~~~~~ PROGRAM PENENTUAN BEASISWA BIDIKMISI MAHASISWA ~~~~~~~~ |"<<endl;
  15. cout<<"| ~~~~~~~~~~~~~~~~~~~~UPN 'VETERAN' JAWA TIMUR~~~~~~~~~~~~~~~~~~~~ |"<<endl;
  16. cout<<"|__________________________________________________________________|"<<endl;
  17. cout<<"********************************************************************"<<endl;
  18.  
  19. char nama[30],alamat[50],jurusan[10];
  20. cout<<"Isi Data Diri"<<endl;
  21. cout<<"Nama =";
  22. gets(nama);
  23. cout<<"Alamat =";
  24. gets(alamat);
  25. cout<<"Jurusan =";
  26. gets(jurusan);
  27.  
  28. cout<<"********************************************************************"<<endl;
  29. cout<<"__________________PERATURAN PENGISIAN__________________"<<endl;
  30. cout<<"_________________1.Jawab dengan Jujur__________________"<<endl;
  31. cout<<"____________2.Isi Jawaban Sesuai Kode Nomer____________"<<endl;
  32. cout<<"********************************************************************"<<endl;
  33.  
  34. int total_point, total_rupiah, a, b, c, d, e, f;
  35. cout<<"JUMLAH ORANG TUA YANG MASIH ADA"<<endl;
  36. cout<<"1.Lengkap"<<endl;
  37. cout<<"2.Tidak Lengkap"<<endl;
  38. cout<<"3.Tidak Ada"<<endl;
  39. cout<<"JAWABAN :";
  40. cin>>a;
  41. cout<<"____________________________________________________________"<<endl;
  42. cout<<"GAJI ORANG TUA"<<endl;
  43. cout<<"1.> 1.500.001"<<endl;
  44. cout<<"2.500.001-1.500.000"<<endl;
  45. cout<<"3.< 500.000"<<endl;
  46. cout<<"JAWABAN :";
  47. cin>>b;
  48. cout<<"____________________________________________________________"<<endl;
  49. cout<<"JUMLAH SAUDARA YANG DITANGGUNG"<<endl;
  50. cout<<"1.0"<<endl;
  51. cout<<"2.< 3"<<endl;
  52. cout<<"3.> 3"<<endl;
  53. cout<<"JAWABAN :";
  54. cin>>c;
  55. cout<<"____________________________________________________________"<<endl;
  56. cout<<"KEPEMILIKAN RUMAH"<<endl;
  57. cout<<"1.Hak Milik"<<endl;
  58. cout<<"2.Menumpang"<<endl;
  59. cout<<"3.Kost/Kontrak"<<endl;
  60. cout<<"JAWABAN :";
  61. cin>>d;
  62. cout<<"____________________________________________________________"<<endl;
  63. cout<<"TANGGUNGAN LISTRIK PER BULAN"<<endl;
  64. cout<<"1.> 100.001"<<endl;
  65. cout<<"2.50.001-100.000"<<endl;
  66. cout<<"3.< 50.000"<<endl;
  67. cout<<"JAWABAN :";
  68. cin>>e;
  69. cout<<"____________________________________________________________"<<endl;
  70. cout<<"JUMLAH KENDARAAN YANG DIMILIKI"<<endl;
  71. cout<<"1.Sepedah Motor >= 2"<<endl;
  72. cout<<"2.Sepedah Motor = 1"<<endl;
  73. cout<<"3.Tidak Punya"<<endl;
  74. cout<<"JAWABAN :";
  75. cin>>f;
  76. cout<<"____________________________________________________________"<<endl;
  77. cout<<"********************************************************************"<<endl;
  78.  
  79. system ("cls");
  80. total_point = a + b + c + d + e + f;
  81. total_rupiah = total_point*750000;
  82.  
  83. cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~BUKTI LOLOS~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl;
  84. cout<<"Nama :"<<nama<<endl;
  85. cout<<"Alamat :"<<alamat<<endl;
  86. cout<<"Jurusan :"<<jurusan<<endl;
  87. if(total_point>=7&&total_point<=18){
  88. cout<<("SELAMAT ANDA TELAH LOLOS BEASISWA BIDIKMISI")<<endl;
  89. cout<<"TOTAL BEASISWA YANG ANDA DAPAT SEBESAR RP."<<total_rupiah<<endl;
  90. cout<<"********************************************************************"<<endl;
  91. }
  92. else if (total_point<7||total_point>18){
  93. cout<<("MOHON MAAF ANDA TIDAK LOLOS BEASISWA BIDIKMISI")<<endl;
  94. cout<<"********************************************************************"<<endl;
  95. }
  96. int*total1;
  97. total1=&total_point;
  98. cout<<"Alamat memori Total Point adalah="<<total1<<endl;
  99. int*total2;
  100. total2=&total_rupiah;
  101. cout<<"Alamat memori Total Rupiah adalah="<<total2<<endl;
  102. cout<<"\n";
  103. cout<<"Kode " << total1 << " dan " << total2 << " Merupakan hasil memori penentuan beasiswa bidikmisi";
  104.  
  105. return 0;
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement