Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

fYou are hired as a contractor to help a university migrate an existing student system to a new platform using C++ language. Since the application

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
\fYou are hired as a contractor to help a university migrate an existing student system to a new platform using C++ language. Since the application already exists, its requirements exist as well, and they are outlined in the next section. You are responsible for implementing the part of the system based on these requirements. A list of data is provided as part of these requirements. This part of the system is responsible for reading and manipulating the provided data. You must write a program containing two classes (Le.r 52-35:): and Roster). The program will maintain a current roster of students within a given course. Student data for the program include student ID. first name. last name, email address, age, an array of the nulnber of days to complete each course, and degree program. This information can be found in the "'studentData Ta ble" below. The program will read a list of five students and use function calls to manipulate data [see pa it F4 in the requirements below]. While parsing the list of data. the program should create student objects. The entire student list will be stored in one array of students called :Lesea:3tez;r:ay. Specic data-related output will be directed to the console. studentData Table Student ID _ Joiwle'gmgm all com Degree Program L '- 30 35 40 SECURITY Erickson_L990@gmailcom 50 30 40 NETWORK , ' . . , l-lapoli The lawaIQQvahoo com 20. 4o. 33 SOFTWARE Black Erin-black-wmcast net 50 58:40 SECURITY Your first name Your last name Your valid email address Your age Number of days to SOFTWARE complete 3 courses The data should be input as follows: You may not include third-party libraries. Your submission should include one zip file with all the necessary code files to compile. suppoit. and run your application. You must also provide evidence of the program's required functionality by taking a screen capture of the console runr saved as an image file. F. Demonstrate the program's required functionality by adding a main () function in main.cpp, which will contain the required function calls to achieve the following results: 1. Print out to the screen, via your application, the course title, the programming language used, your WGU student ID, and your name. 2. Create an instance of the Roster class called classRoster. 3. Add each student to classRoster. 4. Convert the following pseudo code to complete the rest of the main ( ) function: classRoster . printAll() ; classRoster . printInvalidEmails () ; //loop through classRosterArray and for each element: classRoster . printAverageDaysInCourse (/*current_object's student id*/) ; Note: For the current object's student id, use an accessor (i.e., getter) for the classRosterArray to access the student id. classRoster . printByDegreeProgram (SOFTWARE) ; classRoster . remove ("A3") ; classRoster . printAll() ; classRoster . remove ( "A3") ; //expected: the above line should print a message saying such a student with this ID was not found. 5. Implement the destructor to release the memory that was allocated dynamically in Roster.\f\f\f#pragmaonce #include #include "degree.h" class Student { public : Student (std: : string studentID, std: :string firstName, std: : string lastName, std: : string email, int age, int* numDays, DegreeProgram degreeProgram); std: : string getStudentID( ); std:: string getFirstName( ) ; std: : string getLastName( ) ; std: : string getEmail() ; int getAge ( ) ; int* getNumDays () ; DegreeProgram getDegreeProgram( ) ; void setStudentID(std: : string studentID); void setFirstName (std: : string firstName) ; void setLastName(std: : string lastName); void setEmail(std: : string email); void setAge(int age); void setNumDays (int* numDays) ; void setDegreeProgram(DegreeProgram degreeProgram) ; void print ( ); void printDaysToComplete( ) ; private: std: : string studentID; std::string firstName; std: : string lastName; std: : string email; int age; int numDays [3 ]; DegreeProgram degreeProgram

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

Which of the key word is used to create an instance of a class?

Answered: 1 week ago

Question

How many bytes a char data type occupies?

Answered: 1 week ago

Question

The intermediate code is referred to as?

Answered: 1 week ago

Question

A loop with in another loop is called a ?

Answered: 1 week ago