Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ class Student protected: int courses; string courseGrades: public: Studentint c) courses = c; courseGrades = new string[courses); } Student delete / courseGrades; 1 virtual

c++
image text in transcribed
image text in transcribed
class Student protected: int courses; string courseGrades: public: Studentint c) courses = c; courseGrades = new string[courses); } Student delete / courseGrades; 1 virtual bool award Degree() = 0; 1 class Undergraduate : public Student public: Undergraduate(int c) Student (c) } virtual bool award Degree() // if no course grade is Freturn true return false; 1 class Graduate : public Student protected: int advisors: string thesis Remarks; public: Graduatefint cinta) : Studentic advisors = a; thesis Remarks = new stringadvisors); } virtual bool awardDegree(X // if no course grade is Fand all advisors are satisfied with thesis, return true return false; } "Graduate() delete ll thesisRemarks: What can be wrong with the following implementation (code below), if the relationship among the classes is correct? Simply explain in words. *

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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

The energy of a molecule can be divided into four categories.

Answered: 1 week ago

Question

Jim Riley is (incompetent) for that kind of promotion.

Answered: 1 week ago

Question

1 What demand is and what affects it.

Answered: 1 week ago