Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

Students also viewed these Databases questions

Question

State the uses of job description.

Answered: 1 week ago

Question

Explain in detail the different methods of performance appraisal .

Answered: 1 week ago