Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i want this in java DESIGNPAGE LAYOUT REFERENCES MAILINGS REVIEW VEW urier New .1135, A. A. Aa. Font Paragraph CS 3513 Assignment 4 10 points
i want this in java
DESIGNPAGE LAYOUT REFERENCES MAILINGS REVIEW VEW urier New .1135, A. A. Aa. Font Paragraph CS 3513 Assignment 4 10 points Due Date is Saturday 3/3/2018 at 11:00 PM Please submit your work on the blackboard. For this assignment you need to suhmit the source code (java) files. Design a class named Triangle that extends GeometricObject. The class contains: Three double data fields named side 1 . side2, and side3 with default values to denote three sides of the triangle. o A no-arg constructor that creates a default triangle. o A constructor that creates a triangle with the specified side1, side2, and o side3 o The accessor methods for all three data fields. o A method named gst Anea0 that returns the area of this triangle. o A method named toString) that returns a string description for the triangle. You can user this formula to compute the area of a triangle The toStringo method is implemented as follows: return "Triangle: side i = " , sdel t " side: " + side2 + side) = " + side3; Write a test program that prompts the user to enter three sides of the triangle, a solor, and a Boolean value to indicate whether the triangle is filled. The program should create a Triangle object with these sides and set the color and filled properties using the input. The program should display the area, color, and true or false to indicate whether it is filled or not. Note: The GeametricObiect is given in the next pageStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started