Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write the solution in a computer handwriting and not in handwriting because the handwriting is not clear Please write the solution with the code

Please write the solution in a computer handwriting and not in handwriting because the handwriting is not clear
Please write the solution with the code in Java .... and attach a picture of the code and output of the code
Please write the solution with the code in Java .... and attach a picture of the code and output of the code
The code must be text so that I can copy it easily
image text in transcribed
image text in transcribed
General Guidelines When Writing Programs: - Include the following comments at the top of your source codes // - // Assignment (include number) // Question: (include question part number, if applicable) // Written by: (include your name and student ID) // - In a comment, give a general explanation of what your program does. As the programming questions get more complex, the explanations will get lengthier. - Include comments in your program describing the main steps in your program. - Display a welcome message which includes your name. - Display clear prompts for users when you are expecting the user to enter data from the keyboard, and all output should be displayed with clear messages and in an easy to read format. End your program with a closing message so that the user knows that the program has terminated Problem: Two dimensional shapes In this assignment you are required to write and use some user-defined classes. Here is what is given. Create and implement a Shape_twoD class and then three geometric two dimensional shapes: Circle. RightTriangle. Rectangle. 1. Each class shall have the following functions: double getArea). double getCircumference int getNumberOfAngles(). 2. These functions should be derived from Shape_twoD and the getNumberOfAngles() shall be final. Also, we shall no longer have public data members. 3. The design should allow for one shape to be compared to another shape for equality in area, and it should allow for one shape to prints its specifications: area, circumference, number of angles. 4. Create 20 Shape_twoD objects using array structure 5. Sort all shapes in descending order depending on their areas. Required Files: Shape_twoD.java -- The base (parent) Circle.java -- A subclass (child) of Shape_twoD. RightTriangle.java -- A subclass (child) of Shape_twoD. Rectangle.java -- A subclass (child) of Shape_twoD. ExamineShape.java -- Shall contain testing methods

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

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

Recommended Textbook for

Students also viewed these Databases questions