Program C++ Menampilkan Nama Mahasiswa Menggunakan Array

Latihan Modul 7.5

Nama : Haidi

No.Reg : 49031064

  1. Buatlah Daftar nama anda sekelas dilengkapi dengan NRP, urutan tampilan harus sesuai dengan daftar siswa yang tertera pada absensi atau daftar hadir siswa
  2. Kemudian tampilan jumlah seluruh siswa atau teman anda sekelas, misalnya 42 orana.

Source Code :

  1. //Nama : Haidi
  2. //NIM : 49013064
  3. #include <iostream>
  4. using namespace std;
  5. int main()
  6. {
  7. cout << “Nama-Nama Mahasiswa D4 ITB             NRP \n”<<endl <<endl;
  8. char name[90][60] = {“1. Al Bahri                      49013037″,”2. Andri Arisandi                    49013038”, “3. Andri Setia Permana              49013039”,
  9. “4. Anggrelia Pradina Kisyanda           49013040”, “5. Anjas Permana Kumbara            49013041″,”6. Arina Primardiani                 49013042”, “7. Avinta Putri Agistasari          49013043”,
  10. “8. Bastoni                       49013044”, “9. Candra Ardi Nurdianto            49013045”, “10. Devita Maulina Putri        49013046”, “11. Diana Mayangsari R              49013047”, “12. Diki Permadi                    49013048”, “13. Diksi Kalis A                   49013049”,
  11. “14. Dwi Novianto                 49013050”, “15. Egi alif P                      49013051”, “16. Eidelbert S. Sinaga               49013052”, “17. Elan Qisthi Aji W               49013053”, “18. Evan Rahanda                    49013054”, “19. Evi Septiyani Suparno           49013055” ,
  12. “20. Fahuraraji                          49013056″ ,”21. Faizal Rachman                  49013057”, “22. Fajar Nur Rachmad                 49013058″ ,”23. Fana Barkah                     49013059”, “24. Fariz Fath Al-Akbar              49013060”, “25. Fitria Pandu Nugraha            49013061”,
  13. “26. Gita Chandika Putri                 49013062″,”27. Hadrian Erlanda                  49013063″ ,”28. Haidi                      49013064”, “29. Haifani Azmi Rahman                    49013065″ ,”30. Hendri Sildrian                   49013066”,
  14. “31. Heru                         49013067”, “32. Ilham Vahrizal                  49013068″,”33. Indrabayu                           49013069”, “34. Irwan Saifranto R               49013070”,
  15. “35. Ishak                        49013071”, “36. M. Hamzah Mashuri B                    49013072”, “37. Madarina Imanisari                49013073”, “38. Mentari                         49013074”, “39. Mhd. Syarif                     49013075”, “40. Muchamad Saifurrachman          49013076”,
  16. “41. Muhamad Anwar                49013077”, “42. Muhammad Dinul Fathan           49013078”, “43. Muhammad Hamzah               49013079”, “44. Muhammad Maulana Munzir         49013080”, “45. Muhardi Saputra                 49013081”, “46. Nabila Ariani                   49013082” ,
  17. “47. Nadea Nabila                 49013083″ ,”48. Nugroho Permata Putra           49013084”, “49. Nurfiah                           49013085″ ,”50. Nurlela                         49013086”, “51. Pramayogi Sanches                    49013087”, “52. Prasetya Ahby                   49013088”,
  18. “53. Pujo Dwi Aryanto                    49013089″,”54. Purbandaru P U                   49013090″ ,”55. Rahmad Badawi S                   49013091”, “56. Ratih Putri Sundowo                    49013092″ ,”57. Rico arliyanto                    49013093”,
  19. “58. Rifgin Rigazy                49013094”, “59. Rindriana Martasari Putri              49013095″,”60. Risa Ningrum               49013096”, “61. Rizki Syahputra                 49013097”,
  20. “62. Rizqia Wulan Sari                   49013098”, “63. Samsul Arifin                   49013099”, “64. Sandru Kharisma                   49013100”, “65. Sandy Putra                     49013101”, “66. Satrya Wira Wicaksana             49013102”, “67. Taufik Eko Wicaksono            49013103”,
  21. “68. Taufik Maulana               49013104”, “69. Taupik Nurhidayat               49013105”, “70. Toni Firnandess                 49013106”, “71. Tri Sepdian Aditia Faudji              49013107”, “72. Vergina Sawmitha A                 49013108”, “73. Vide Rawi Purnama Ade           49013109” ,
  22. “74. Vitradisa Pratama                   49013110″ ,”75. Vitria Ratna Sari               49013111”, “76. Widya Eka Prativi                 49013112″ ,”77. Yufri Isnaini Rochmat Maulana   49013113”, “78. Yukke Yuliani Hamdani            49013114”, “79. Yulia Hapsari                   49013115”,
  23. “80. Yunita Rahmawati                    49013116″,”81. Zulkarnain Ar Rasyid             49013117″ ,”82. Chum Chivorn               49013118”, “83. Kruy Borey                      49013119″ ,”84. Tren Vongsahaska                49013120”,
  24. “85. Um Kosal                     49013121”, “86. Sreng Dalin                     49013122″,”87. Branom Channary                   49013123”, “88. Sem Bunthon                     49013124”,
  25. “89. Samun Samorn                 49013125”};
  26. for (int i = 0; i < 90; i++)
  27. {
  28. cout << name[i] << endl;
  29. }
  30. cout <<” JUMLAH MAHASISWA ADALAH 89 ORANG \n”<<endl;
  31. system(“pause”);
  32. return (0);
  33. }

Setelah di compile dan di jalankan :

modul7.5

modul7.5part2

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s