Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve this in C++ last time wasn't helpful so I'm posting it again Ex 1. StudentMarks Class Define and implement a class StudentMarks as described

solve this in C++

last time wasn't helpful so I'm posting it again

image text in transcribedimage text in transcribedimage text in transcribed

Ex 1. StudentMarks Class Define and implement a class StudentMarks as described below: Data members: - student_name as string. - student_no as int. - number_of_courses as integer which is the number of courses for the student. - student_marks: StudentMarks array which contains all the student course information including marks, its size is the number_of_courses. Function member: - A parameterized constructor that receives: student_name, student_no, number_of_courses. you have to use this pointer. - Copy constructor. The copy must be a deep copy. - Destructor. - void addCourses (StudentMarks * c ) which set the courses information using the received array c. - Void delete_all_courses(), that deallocate the old list and make its pointer point at the new list with the same size. - Void print_details (), that prints all details of a student including the courses and total marks using the function print inside the StudentMarks object. : 3. Driver - Create a Student object and fill its information by the user, and define the size of the courses equal to 3. - Create an array of type StudentMarks with size 3. Ask the user to enter the information of the student marks. - Add these records to the student using addCourses function. - Print all information of the student object and the courses including the total mark. - Delete all StudentMarks records using its function - Add one new StudentMark record by the user using AddCourses function. - Print all information of the student object and the courses including the total mark

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

Students also viewed these Databases questions

Question

List out some inventory management techniques.

Answered: 1 week ago