Question: In C # Language Only 1. (20 marks) Write a program to represent shapes. All shapes have a color and a line thickness. It is

In C # Language Only
In C # Language Only 1. (20 marks) Write a program to

1. (20 marks) Write a program to represent shapes. All shapes have a color and a line thickness. It is a MUST that an area be calculatable for all shapes. Your program should consider three shapes: circles, cylinders, and rectangles. For the cylinders, it should be possible for the user to calculate the volume, and for the circle and rectangle it should be possible to calculate the perimeter. Your program should read the information of 100 shapes from the user and store them in a single data structure. The program should them print the average area of each shape, as well as print the number of red cylinders whose volume is less than average. Shape Area Perimeter Volume Circle 2 Not Applicable Cylinder 2(r%)+2 qrHeight Ph Not Applicable 2 x (Length + Width) Rectangle Length x Width Not Applicable

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!