Home / Expert Answers / Computer Science / lab-menu-driven-programs-create-a-lab-report-for-the-following-programming-challenge-geometry-ca-pa127

(Solved): LAB. Menu Driven Programs. Create a lab report for the following programming challenge. Geometry Ca ...




student submitted image, transcription available below
LAB. Menu Driven Programs. Create a lab report for the following programming challenge. Geometry Calculator Write a program that displays the following menu: ceometry Calculator 1. Caleulate the Area of a circle 2. Calculate the Area of a Rectangle 3. Calculate the Area of a Triangle 4. Quit Enter your ehoice . If the user enters 1 , the program should ask for the radius of the circle and then display its area. Use the following formula to calculate the circle's area: Use 3.14159 for and the radius of the circle for . If the user enters 2 , the program should ask for the length and width of the rectangle, and then display the rectangle's area. Use the following formula to calculate the rectangles area: If the user enters 3, the program should ask for the length of the triangle's base and its height, and then display its area. Use the following formula to calculate the area of the triangle: If the user enters 4 , the program should end. Additional requirements: - Create a menu function. - Create a function for each area calculation. - Once an area calculation is done return to the main menu. - Create functions for user inputs and outputs. - Create additional functions if necessary. - The main function should contain only the main logic of your program. Run your program at least four times. For each time report the user input and the program output. Your lab report must demonstrate that all requirements are met.


We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe