Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

You are expected to solve the following problems with C#. Draw UML diagrams if asked. Design and implement an application in C# that solves the

You are expected to solve the following problems with C#. Draw UML diagrams if asked.

image text in transcribed

Design and implement an application in C# that solves the following problem for the customer. Customer of the program is a mathematic teacher that teaches geometry class. Customer needs a software for calculating area and circumference of geometric shapes for the students of the geometry class. You need to keep a name for the shape and calculate circumference and area for each shape. Your program should be able to calculate area and circumference for a rectangle, square, right triangle, equilateral triangle and scalene triangle. In your implementation, use good software engineering and object-oriented programming practices and use a UML Class Hierarchy diagram reflecting your design before your implementation. Furthermore, do not forget to do validity checking for parameters for each classes. For example, use triangle check rules such as a + b >c, a + c >band, b + c >a based on the edge values a, b and c. Note: In your test class implementation, create number of different shape objects which are kept in a collection using the array/arraylist. Examplify a good use of polymorphism capability by calling calculate area and calculate circumference methods of the corresponding class objects

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions