Question: Complete a main() function to get input from the user about the size of the triangle, rectangle, and circle in the mural. Use the helper
Complete a main() function to get input from the user about the size of the triangle, rectangle, and circle in the mural. Use the helper functions you wrote in part 1 to calculate the areas of each shape. Add these together in main() to get the total area. Lastly, display the total area, rounded to 2 decimal places.
Use the following prompts for input: Enter the base of the triangle: Enter the height of the triangle: Enter the length of the rectangle: Enter the width of the rectangle: Enter the radius of the circle: Use the following for output: Total area is: Note: Don't forget you need a call to main() at the end of the script.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
