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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started