Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ using a data structure and array Create a program that uses a data structure and uses a student name and ID to correspond to

C++ using a data structure and array

Create a program that uses a data structure and uses a student name and ID to correspond to a set of courses. Assume that one student can take at most 99 courses. (You may add array or/and struct to meet the needs.) Design an interactive system which allows the user to query the system in the following way.

User Input Output
"L" or "l"

System asks for student name or ID. With either one of these two, the system responds with a listing of courses which have been completed by the student. At the end the GPA of the student is displayed. For example, if the user queries the information for Amy, the output should be like:

*** 12546 Amy *************

CS1 4 81 3.0

CS2 4 90 4.0

CS3 3 90 4.0

==================

GPA: 3.46

"A" or "a" System lists information for all students.
"Q" or "q" System quits.
Anything else System responds with error message.

There is no set student info so the student info may be created beforehand but must be stored in an "input.txt" file from which the program reads from.

If any clarifcation is needed, feel free to ask. Thank you ahead of time for your help.

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

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

What requirement did Health Canada initially require of Aurora?

Answered: 1 week ago