Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started