Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Task: I have multiple shapes. Each shape does something different depending on what it is. For example: Shape Prints I am a shape!

image text in transcribedimage text in transcribedimage text in transcribed

The Task: I have multiple shapes. Each shape does something different depending on what it is. For example: Shape Prints "I am a shape! Shapes are cool" Prints "Shape" 5 times O Triangle O Circle Prints "I am a triangle" Prints "I have 3 sides" 3 times Prints "I am a shape! Shapes are cool" Prints "Shape" 5 times Prints "I am round Prints "I like to roll!" 7 times Prints "I am a shape! Shapes are cool" Prints "Shape" 5 times Rectangle Prints "I am a rectangle... who has 4 sides" Prints "I am a shape! Shapes are cool" Prints "Shape" 5 times What You Need to Do: Your job is to implement the code (as specified above). An example output would be: If I called these methods in main... static void main(string[] args) { new Rectangle (); new Triangle (); new Circle(); } I am a rectangle...who has 4 sides I am a shape! Shapes are cool! Shape Shape Shape Shape Shape I am a triangle I have 3 sides I sides I have 3 sides I am a shape! Shapes are cool! Shape Shape Shape Shape Shape I am round... I like to roll! I like to roll! I like to roll! I like to roll! I like to roll! I like to roll! I like to roll! I am a shape! Shapes are cool! Shape Shape Shape Shape Shape

Step by Step Solution

There are 3 Steps involved in it

Step: 1

It seems like you want to implement a program with different shapes Triangle Circle Rectangle each h... 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

Fundamentals of Cost Accounting

Authors: William Lanen, Shannon Anderson, Michael Maher

3rd Edition

9780078025525, 9780077517359, 77517350, 978-0077398194

More Books

Students also viewed these Programming questions