Question: This is for c++ . Create a dynamic array of structure in a separate function, return a pointer to it. And also create a function

This is for c++ . Create a dynamic array of structure in a separate function, return a pointer to it. And also create a function that prompts to enter Students last name and test score for all students (score can not be negative)

struct Student

{

string lastName;

int score;

};

Use this functions

Function name

Return type

Parameter list and purpose

getSize

int

()->parameter list is empty

Prompt user to enter total number of students and return the size (size cannot be negative).

makeStudentArray

Student*

(int size)->parameter list

Create a dynamic array of Student and return a pointer to the array of Student.

getStudentInfo

void

(Student *studentl, int size)->parameter list

Prompt users to enter student last name and test score for all students (score cannot be negative)

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!