Please use C College Student Bibi is a lecturer who manages a student database at a university. Before Bibi existed, the student database was not well organized, and was not collected per student, so students’ data could be chopped up and scattered irregularly between one another. Because Bibi is a lecturer who has studied “struct”, Bibi wants to store all the data given in the struct. Making it easier to find and reuse. You are encouraged to use the struct method to solve this problem to make it easier to store data. Data from students can contain: • Name (Nama) • NIM • Age (Umur) • Postal Code (Kode Pos) • Place of Birth (Tempat Lahir) • Date of Birth (Tanggal Lahir) • High School (Almamater SMA) • Number of Siblings (Jumlah Saudara Kandung) • Height (Tinggi Badan) • Bank Account Number (NOMOR REKENING) Format Input The input in the first row contains an integer N , how much student data you have to save. For the next N ×10 rows of student data you must save sequentially from the Name until Account Number Format Output The output consists of (N × 10) + N lines. Student data is preceded by “Mahasiswa ke-X:”, where X is the order of students. Constraints • 1 ≤ N ≤ 100 • 1 ≤ |N ame| ≤ 100 • |N IM | = 9 • 1 ≤ Age ≤ 100 • |P ostalCode| = 6 • 1 ≤ |P laceOf Birth| ≤ 100 • 1 ≤ |DateOf Birth| ≤ 100 • 1 ≤ |HighSchool| ≤ 100 • 1 ≤ N umberof Siblings ≤ 100 • 1 ≤ Height ≤ 1000 • |BankAccountN umber| = 9 Sample Input (standard input) 2 Lili 123456789 13 786431 Jakarta 14SEPT2010 Bina Nusantara School 7 123 968543769 Jojo 125676789 22 711111 Bekasi 1JANUARY2018 Bina Nusantara School 99 12 890234789 Sample Output (standard output) Mahasiswa ke-1: Nama: Lili NIM: 123456789 Umur: 13 Kode Pos: 786431 Tempat Lahir: Jakarta Tanggal Lahir: 14SEPT2010 Almamater SMA: Bina Nusantara School Jumlah Saudara Kandung: 7 Tinggi Badan: 123 NOMOR REKENING: 968543769 Mahasiswa ke-2: Nama: Jojo NIM: 125676789 Umur: 22 Kode Pos: 711111 Tempat Lahir: Bekasi Tanggal Lahir: 1JANUARY2018 Almamater SMA: Bina Nusantara School Jumlah Saudara Kandung: 99 Tinggi Badan: 12 NOMOR REKENING: 890234789 Note The AlmamaterSM A data may contain several spaces.
Please use C
College Student
Bibi is a lecturer who manages a student
student database was not well organized, and was not collected per student, so students’
data could be chopped up and scattered irregularly between one another.
Because Bibi is a lecturer who has studied “struct”, Bibi wants to store all the data given
in the struct. Making it easier to find and reuse.
You are encouraged to use the struct method to solve this problem to make it easier to
store data.
Data from students can contain:
• Name (Nama)
• NIM
• Age (Umur)
• Postal Code (Kode Pos)
• Place of Birth (Tempat Lahir)
• Date of Birth (Tanggal Lahir)
• High School (Almamater SMA)
• Number of Siblings (Jumlah Saudara Kandung)
• Height (Tinggi Badan)
• Bank Account Number (NOMOR REKENING)
Format Input
The input in the first row contains an integer N , how much student data you have to
save. For the next N ×10 rows of student data you must save sequentially from the Name
until Account Number
Format Output
The output consists of (N × 10) + N lines. Student data is preceded by “Mahasiswa
ke-X:”, where X is the order of students.
Constraints
• 1 ≤ N ≤ 100
• 1 ≤ |N ame| ≤ 100
• |N IM | = 9
• 1 ≤ Age ≤ 100
• |P ostalCode| = 6
• 1 ≤ |P laceOf Birth| ≤ 100
• 1 ≤ |DateOf Birth| ≤ 100
• 1 ≤ |HighSchool| ≤ 100
• 1 ≤ N umberof Siblings ≤ 100
• 1 ≤ Height ≤ 1000
• |BankAccountN umber| = 9
Sample Input (standard input)
2
Lili
123456789
13
786431
Jakarta
14SEPT2010
Bina Nusantara School
7
123
968543769
Jojo
125676789
22
711111
Bekasi
1JANUARY2018
Bina Nusantara School
99
12
890234789
Sample Output (standard output)
Mahasiswa ke-1:
Nama: Lili
NIM: 123456789
Umur: 13
Kode Pos: 786431
Tempat Lahir: Jakarta
Tanggal Lahir: 14SEPT2010
Almamater SMA: Bina Nusantara School
Jumlah Saudara Kandung: 7
Tinggi Badan: 123
NOMOR REKENING: 968543769
Mahasiswa ke-2:
Nama: Jojo
NIM: 125676789
Umur: 22
Kode Pos: 711111
Tempat Lahir: Bekasi
Tanggal Lahir: 1JANUARY2018
Almamater SMA: Bina Nusantara School
Jumlah Saudara Kandung: 99
Tinggi Badan: 12
NOMOR REKENING: 890234789
Note
The AlmamaterSM A data may contain several spaces.
Step by step
Solved in 3 steps