Write a complete C++ program to calculate the area of a triangle, rectangle or circle. The program
requires the user to enter the name of the figure, and using a decision making statement(s) to decide:
• If the figure is a triangle then ask for base and height values to input.
• If the figure is a rectangle the ask for length and breath values to input
• If the figure is a circle then ask for the radius values to input
The program should display the output on the screen and should enable the user to re-enter choice for at
most three times incase a wrong selection is entered
1
Expert's answer
2013-06-18T07:56:46-0400
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Comments
Leave a comment