Question: these are two different codes but the second portion is part of the first code . so I need two different codes, please and thank

these are two different codes but the second portion is part ofthese are two different codes but the second portion is part of the first code . so I need two different codes, please and thank you.

Write a C++ program that creates a class Student which has the following private attributes: ID (int), name (string), GPA (float) and phoneNumber (string). The class should contain the following public functions: setID(int id) to set the ID value setName (string name) to set the name value setGPA (float gpa) to set the GPA value setphoneNumber (string number) to set the phoneNumber value int getID() to get the ID value string getName() to get the name value float getGPA () to get the GPA value string getphoneNumber() to get the phoneNumber value void displayStudentInfo() to display the student info as: The student ID is 122232, name is Mark, GPA is 3.90, and phone number is 306338560 using the getter functions (e.g., getID). . . . Then, create an array of 5 students and display their information on the screen. Here are the steps: Create an array that can hold 5 students Create 5 objects from the Student class Use the setter functions (e.g., setID) to set the values of the 5 students objects Write a loop that displays the 5-student information stored in the array using the displayStudentInfo() function, each one per line

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!