Question: Tutorial 4 Array Declare two string arrays named studID and studName respectively, each can store up to 8 elements. Then perform the following Prompt user
Tutorial 4 Array Declare two string arrays named studID and studName respectively, each can store up to 8 elements. Then perform the following Prompt user to enter up to 8 students' ID and names from your class. Store the data into the respective studID and studName arrays. Remark: You may use a while or do-while loop. Ensure stop prompting for input after 8 iterations. Example of input: Enter Student Name:-> Chong S.W. Enter Student ID: -> SID12345 Press [V] for more record, press [N] to stop Option: > Y Enter Student Name:-> (b) Tabularize all the student IDs and student names retrieved from the studID and studName arrays. Example of output screen is as follows: No. Student Name Student ID 1 2 3 4 5 6 7 Chong S.W. Leng Y. L. Laurence Leong Chris Lim Alan Tam Wong C.H. Caleb Wong Wong Y. X SID12345 SID23456 SID34567 SID45678 SID56789 SID67890 SID78901 SID89012
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
