Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions