Write a program to create a class called ShapeObject and this class contains the below,

Calculate the Price


Price (USD): $11

Write a program to create a class called ShapeObject and this class contains the below,
1) String data field to called “Color”
2) Default constructor (no-arg) to create an object with “RED” color by default
3) An argument constructor to create the object with specified color.
4) A method names toString() that returns the description of the ShapeObject.
Create a class called Triangle that extends from ShapeObject. The class contains:
1) Three double data fields called side1, side2 and side3
2) Default constructor (no-arg) that creates default Triangle with (1,1,1)
3) An argument constructor to create the object with specified side1, side2 and side3 values.
4) An argument constructor to create the object with specified side1, side2 and side3 values and color from parent class.
5) Accessor methods to all three data fields
6) Mutator methods to all three data fields
7) A method called getSemi_Perimeter() that returns Semi_Perimeter of the triangle
8) A method names toString() that returns the description of the Triangle.
Finally create a TestClass to create 3 objects for Triangle class.
Sample Call in Test Program:
Triangle_Object_1 = Triangle()
Semi_Perimeter of Triangle_Object_1  = 1.5
Description of Triangle_Object_1  : Side1 = 1, Side2=1, Side3=1 and the color is RED and the Semi_Perimeter is 1.5
Triangle_Object_2 = Triangle(4,5,6)
Semi_Perimeter of Triangle_Object_2  = 7.5
Description of Triangle_Object_2  : Side1 = 4, Side2=5, Side3=6 and the color is RED and the Semi_Perimeter is 7.5
Triangle_Object_3 = Triangle(2,2,4,”GREEN”)
Semi_Perimeter of Triangle_Object_3  = 4.0
Description of Triangle_Object_3  : Side1 = 2, Side2=2, Side3=4 and the color is GREEN and the Semi_Perimeter is 4.0
Hint:
To calculate the Semi_Perimeter of the triangle, use the below formulae,
Semi_Perimeter = (a +b + c) / 2
Submission Requirement:
Please you need to submit your work in word format, and  each question should provide the below requirements:

The code
The results in screenshots

“96% of our customers have reported a 90% and above score. You might want to place an order with us.”

"Do you need a similar assignment done for you from scratch? We have qualified writers to help you with a guaranteed plagiarism-free A+ quality paper. Discount Code: SUPER50!"

order custom paper
The World's Best Writers

Unlike other essay writing companies, we don’t just use any writers – we use the best of the best. Every writer is not only directly qualified in the subject they write for, but has been through and understands the challenges and difficulties of Higher Education.

Every writer is hand selected by our team to produce the best piece of work possible. We simply won’t settle for less.

18 Years in Business

Ever since we started back in 2003, we’ve led the industry from the front, setting trends and smashing expectations. We were the first company in the world to offer you guaranteed 2:1 and 1st class work and we’re one of the few companies located in the UK.

Why don’t you come and say hello?

We Love Writing

At UK Best Essays, we’re proud to know exactly what goes into making an awesome essay. We’ve dedicated over 14 years towards becoming experts in all things academic – from essays, assignments and coursework, through to dissertations, exams, reports and reflections.

While others come and go, UK Best Essays has grown and developed into one of the world’s leading academic support companies. Got more questions about our services?

© 2022 All rights reserved. UK Best Essays is a professional writing service that provides original papers. Our products include academic papers of varying complexity and other personalized services, along with research materials for assistance purposes only. All the materials from our website should be used with proper references.