hello,
i got an assignment whichc onsist of 3 questions.
i was able to do first and second question but the third one i am getting some problems..
i am posting the code and question as image so as they don't appear on search engines as its for uni things...
The answer is a .cpp file. I modified the filename to .c because the forum here does not allow upload of .cpp file.
only these part i think needs to modify:
first:
second :
Third
I really need to get this working urgently...
Please when replying don't post the whole code directly on the forum...
send as attachment or just part which you modified...
Thank you very much in advance for your help...
i got an assignment whichc onsist of 3 questions.
i was able to do first and second question but the third one i am getting some problems..
i am posting the code and question as image so as they don't appear on search engines as its for uni things...
The answer is a .cpp file. I modified the filename to .c because the forum here does not allow upload of .cpp file.
only these part i think needs to modify:
first:
// --------------------needs mods----
Circle_Shape(){};
Circle_Shape(Point c, double s){
centre = c;
size = s;
};
// ------------
second :
// -----------------needs mods-------
Rec_Shape(){};
Rec_Shape(Point w, double s){
width = w;
size = s;
};
// ------------
Third
cout << rect.area() << endl;
cout << rect.perimeter() << endl;
cout << circ.area() << endl;
cout << circ.perimeter() << endl;
I really need to get this working urgently...
Please when replying don't post the whole code directly on the forum...
send as attachment or just part which you modified...
Thank you very much in advance for your help...