Question: Given what we know about structures, we will write a script file that will ask the user if they wish to create 3 shapes: circle,

Given what we know about structures, we will write a script file that will ask the user if they wish to create 3 shapes: circle, right triangle, and square. Each of these shapes will be a structure. Each of those structures will be nested WITHIN a general structure: shape. The hierarchy looks like this: Shape Structure Attribute: Circle Structure The script will ask the user, in succession, if they would like to create a circle, right triangle, or square. If the user responds with a V, create the structure they desire within the shape structure and assign random values to all attributes EXCEPT the area. You must calculate the area yourself. You must use a string variable for the user input. Given what we know about structures, we will write a script file that will ask the user if they wish to create 3 shapes: circle, right triangle, and square. Each of these shapes will be a structure. Each of those structures will be nested WITHIN a general structure: shape. The hierarchy looks like this: Shape Structure Attribute: Circle Structure The script will ask the user, in succession, if they would like to create a circle, right triangle, or square. If the user responds with a V, create the structure they desire within the shape structure and assign random values to all attributes EXCEPT the area. You must calculate the area yourself. You must use a string variable for the user input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
