Your Perfect Assignment is Just a Click Away

Starting at $8.00 per Page

100% Original, Plagiarism Free, Customized to Your instructions!

glass
pen
clip
papers
heaphones

Programming

Programming

Programming

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

"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.