hello,
i got an assignment which consist 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 .cpp.txt because the forum here does not allow upload of .cpp file.
only these part i think needs to modify:
first:
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 which consist 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 .cpp.txt because the forum here does not allow upload of .cpp file.
only these part i think needs to modify:
first:
second :Quote:
// --------------------needs mods----
Circle_Shape(){};
Circle_Shape(Point c, double s){
centre = c;
size = s;
};
// ------------
ThirdQuote:
// -----------------needs mods-------
Rec_Shape(){};
Rec_Shape(Point w, double s){
width = w;
size = s;
};
// ------------
I really need to get this working urgently...Quote:
cout << rect.area() << endl;
cout << rect.perimeter() << endl;
cout << circ.area() << endl;
cout << circ.perimeter() << endl;
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...
Attachments
-
61.5 KB Views: 29
-
2.1 KB Views: 16
Last edited: