Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Fundamentals of C++ Programming Declare two string arrays named studID and studName respectively, each can store up to 8 elements. Then perform the following: (a)

Fundamentals of C++ Programming

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

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

Discuss the states of accounting

Answered: 1 week ago