0% found this document useful (0 votes)
37 views2 pages

Nama: Tama Putra Wijaya NIM: 18.11.2083 Source Code

The document contains source code for a C++ program that takes student data as input including name, student ID number, class, and major. It prompts the user to enter the number of students, then loops to collect the data for each student, storing it in arrays. It then prints out all the collected student data in an organized table format.

Uploaded by

Aji Wahidin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views2 pages

Nama: Tama Putra Wijaya NIM: 18.11.2083 Source Code

The document contains source code for a C++ program that takes student data as input including name, student ID number, class, and major. It prompts the user to enter the number of students, then loops to collect the data for each student, storing it in arrays. It then prints out all the collected student data in an organized table format.

Uploaded by

Aji Wahidin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

NAMA : TAMA PUTRA WIJAYA

NIM : 18.11.2083
SOURCE CODE
#include <iostream>
#include <stdio.h>
#include <conio.h>
using namespace std;

main(){

system("cls");

int i;
int jml;

cout << " Masukan Jumlah Inputan Mahasiswa : "; cin >> jml;
cout << endl;

string nama [jml];


string nim [jml];
string kelas [jml];
string jurusan [jml];

for(i=0;i<jml;i++){
cout << " Masukan Nama Mahasiswa ke : " << i+1 << " = "; cin >> nama [i];
cout << " Masukan NIM Mahasiswa ke : " << i+1 << " = "; cin >> nim [i];
cout << " Masukan Kelas Mahasiswa ke : " << i+1 << " = "; cin >> kelas [i];
cout << " Masukan Jurusan Mahasiswa ke : " << i+1 << " = "; cin >> jurusan [i]; cout <<
endl;
}

cout << " ===== DATA MAHASISWA ===== " << endl << endl;

for(i=0;i<jml;i++){
cout << " Nama Siswa ke : " << i+1 << " = " << nama [i]; cout << endl;
cout << " NIM Siswa ke : " << i+1 << " = " << nim [i]; cout << endl;
cout << " Kelas Siswa ke : " << i+1 << " = " << kelas [i]; cout << endl;
cout << " Jurusan Siswa ke : " << i+1 << " = " << jurusan [i]; cout << endl << endl;
}

return 0;
}

SCRENSHOOT

You might also like