Question: Question (A) Create class and define member functions for the given member function called in main program [10]. aGraduate.setLastName(''Smith''); aGraduate.setIdNum(3456); aGraduate.setGradePointAverage(3.5); aGraduate.displayStudentData(); (B) Remove error

Question

(A) Create class and define member functions for the given member function called in main program [10].

aGraduate.setLastName(''Smith'');

aGraduate.setIdNum(3456);

aGraduate.setGradePointAverage(3.5);

aGraduate.displayStudentData();

(B) Remove error from given code and complete that programs by defining its main () part. [10]

#include "msoftcon.h"

class circle //graphics circle

{

int xCo, yCo; //coordinates of center

int radius;

color fillcolor; //color

fstyle fillstyle; //fill pattern

public:

void set(int x; inti y; int r; color fc; fstyle fs);

{

xCo = x;

yCo = y;

radius = r;

fillcolor = fc;

fillstyle = fs;

)

void draw()

{

set_color(fillcolor).

set_fill_style(fillstyle);

draw_circle(xCo, yCo, radius);

}

};

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 Programming Questions!