Question: C + + please; Assume the class Student has been declared and is structured as follows: Three private members: a string field username, an unsigned

C++ please;
Assume the class Student has been declared and is structured as follows:
Three private members: a string field username, an unsigned long field id, and a double field gpa.
A constructor that takes, in order, a string, an unsigned long, and a double parameter.
Write some code that initializes the variable students with an array of students. Assume the number of students has been assigned to the int constant NUMBER_OF_STUDENTS. The user should input the students' data one by one. Your code should not do input validation.
The format should follow carefully the example provided.
Sample Run (Assume NUMBER_OF_STUDENTS is 2)
Student #1 Username: student.1
Student #1 Id: 11
Student #1 Gpa: 2.6
Student #2 Username: student.2
Student #2 Id: 925
Student #2 Gpa: 1.85

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 Programming Questions!