Question: For this assignment, you need to create 2 functions main ( ) menu ( ) You will be using this concept in HW 1 1

For this assignment, you need to create 2 functions
main()
menu()
You will be using this concept in HW 11.
The main() function needs to call the menu()
menu() will contain 3 menu items
1. draw a circle and enter the radius
2. draw a triangle and enter the leg length
3. draw a parallelogram and enter the base and height
For this assignment, you only need to demonstrate that the menu works and you can enter the required information. This program will not draw the shape. Drawing the shape will cost points.
You will need an input statement(s) and a way to determine which shape you will be drawing and what the required argument will be. The menu should respond depending upon input
You have elected to draw a circle with radius
or
You have elected to draw a triangle with leg length
or
You have elected to draw a parallelogram with a base and height
HW10 will have you modify this assignment to draw the shapes.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!