Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

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 page

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 1 Lnai 6321

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

364215879X, 978-3642158797

More Books

Students also viewed these Databases questions

Question

What are negative messages? (Objective 1)

Answered: 1 week ago