Question: 3. More Specifics This program will give the user a choice of drawing one of 3 shapes: a rectangle, a triangle, or a hexagon. If

 3. More Specifics This program will give the user a choice

3. More Specifics This program will give the user a choice of drawing one of 3 shapes: a rectangle, a triangle, or a hexagon. If the user chooses a rectangle, they will be asked to enter two values, one for the length and one for the width. Then the program will print the rectangle to the screen. For example, if the user enters a 5 for length and 3 for width, your program should print the following to the screen: If the user chooses a triangle, they will be asked to enter a value for the height of the triangle. Then the program will print the triangle to the screen. For example, if the user enters a 4 for height, your program should print the following to the screen: If the user chooses a hexagon, they will be asked to enter a value for the length of a side of the hexagon. Then the program will print the hexagon to the screen. For example, if the user enters a 6 for the length of a side, your program should print the following to the screen: A sample run is shown on the last three pages of this write-up. Use this sample run as a guide for what you need to do with your program in terms of functionality (choice of shape, error messages with incorrect input, etc.). 3. More Specifics This program will give the user a choice of drawing one of 3 shapes: a rectangle, a triangle, or a hexagon. If the user chooses a rectangle, they will be asked to enter two values, one for the length and one for the width. Then the program will print the rectangle to the screen. For example, if the user enters a 5 for length and 3 for width, your program should print the following to the screen: If the user chooses a triangle, they will be asked to enter a value for the height of the triangle. Then the program will print the triangle to the screen. For example, if the user enters a 4 for height, your program should print the following to the screen: If the user chooses a hexagon, they will be asked to enter a value for the length of a side of the hexagon. Then the program will print the hexagon to the screen. For example, if the user enters a 6 for the length of a side, your program should print the following to the screen: A sample run is shown on the last three pages of this write-up. Use this sample run as a guide for what you need to do with your program in terms of functionality (choice of shape, error messages with incorrect input, etc.)

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 Databases Questions!