Question: Please write the follwing entire code in C++. a https://farmingdale.open.suny.edu/bbcswebdav/pid-738... Q * Chrome I., Sign In Google-Blackboard Leam B OASIS Login YouTube Apps Objective: To

Please write the follwing entire code in C++.

Please write the follwing entire code in C++. a https://farmingdale.open.suny.edu/bbcswebdav/pid-738... Q *

Chrome I., Sign In Google-Blackboard Leam B OASIS Login YouTube Apps Objective:

To learn to handle pointer variables and use dynamic arrays to manipulate

data in a class. Tasks: In this programming assignment, you will write

a https://farmingdale.open.suny.edu/bbcswebdav/pid-738... Q * Chrome I., Sign In Google-Blackboard Leam B OASIS Login YouTube Apps Objective: To learn to handle pointer variables and use dynamic arrays to manipulate data in a class. Tasks: In this programming assignment, you will write a program that defines a class called student whose objects can have a flexible number of scores. The program prompts the user for the following information: first name and last name of a student, the maximum number of scores, and the actual scores of a student. For example, a student may have a maximum of 10 scores but actually input 5 scores. After all the scores are entered, the program calculates the student average score. The program should output student's information including a student's first name and last name, the actual number of scores, a list of all the scores, and the average score. A sample output (partial) is shown in Figure 1 Your program should define a class Student and implement it as required. The class Student should have the following private member variables. Member Variable firstName Description A string variable that holds a student's first name. A string variable that holds a student's last name. An int variable that represents the maximum number of scores. An int variable that represents the actual number of scores entered for a student. A pointer variable of type int that stores the address of an int dynamic array. The dynamic array is to store the student scores 21astName 3maxSize 4size SCOores The class Student should also have the following public member functions. Description Member Function A constructor with default parameters This constructor has three formal parameters and use them to initialize firstName, lastName and maxSize member variables. The default values are empty string for first Name and jastName, and 10 for maxSize The value for max$ize should be positive. otherwise use 10 instead The constructor also initializes size to 0 and creates a dynamic array of size maxs ize whose address is stored in the pointer variable saores 2 setENa Accepts a string argument and copies it into the frstName member Variable ccepts a string argument and copies it into the last Name member variable 3seN 11:55 AM a11/18/2018

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!