Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Objectives: Class Association and operator overloading This project is a continuation from Project 1. The program should accept the same input data file and

C++ image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Objectives: Class Association and operator overloading This project is a continuation from Project 1. The program should accept the same input data file and support the same list and find operations. You will change the implementation of Project 1 to use class instead of struct and implement operators for reading and writing student objects. A student.h header file, declared below, is used to represent each student object in the system. A course.h header file, declared below, is used to represent a list of students enrolled in a course. and methods that you need to implement. You should create student.cpp and course.cpp to implement the two classes. Develop a program, name proj03.epp, to use the Course object to read from the input student record file and create a list of student objects. The input data file can store up to 35 student records. This program can perform 2 functions .List: to list all the student records read from the input file .Find: to lookup a specific student record by the input student id. Student ID read from command line is character string. It needs to be converted to an integer before calling the find function. Use the atoi () function in header for the conversion. Your program will read all input from the command line, no prompting for user input and hardcoding for input file name. The required program output is provided below Declaration of Student class: / file student.h ifndef STUDENT H define STUDENT H include using nanespace std elass Student param is the input strean epar am course the student object reference return the input stream triend istream& operator >(istreamiis,Studenti student) epar am o8 the output stream epar am course the student object reference return the output stream triend ostreams operator

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_2

Step: 3

blur-text-image_3

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

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

Show the properties and structure of allotropes of carbon.

Answered: 1 week ago

Question

Question What integration level should an employer choose?

Answered: 1 week ago