Unformatted text preview: resources, it should just display an appropriate goodbye message such as “Triangle says goodbye”. Using cout and cin, ask the user to enter the relevant values before you instantiate these objects and ultimately calculate their area and perimeter values. Use a try-catch clause to capture errand user input, and prompt the user to input those values again until they are correct. Values should be floats. Once all information has been collected, display the calculations for each of the polygons. Problem 2 [10 pts] Describe what happens when you inherit private, protected, and public data from the parent class. What to hand in Please hand in your complete source code, plus an output capture which shows the results of all of the above as well as the scenarios when you type in errand values and are prompted for them again. Resources Please use the resources available at this websites to help with your assignment: http://www.cplusplus.com/doc/tutorial/...
View Full Document
- Fall '09
- Software engineering, parent class, CSquare, Software Engineering HW, parent class derive