Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

How do you know when you have done quality work?

Answered: 1 week ago