Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Declare two string arrays named studID and studName respectively, each can store up to 8 elements. Then perform the following: (a) Prompt user to enter

image text in transcribed

Declare two string arrays named studID and studName respectively, each can store up to 8 elements. Then perform the following: (a) 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 [Y] 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 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 7 8

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Understand how customers respond to effective service recovery.

Answered: 1 week ago

Question

1 . Television News channels importantance of our Life pattern ?

Answered: 1 week ago