Raw the uml diagram fro classes triangle and geometricobject

Assignment Help Computer Engineering
Reference no: EM131273008

Design a class named Triangle that extend GeometricObject

(The Triangle class) Design a class named Triangle that extend GeometricObject. The class contains: Three double data fields named side1, side2, and side3 with default values 1.0 to denote three sides of the triangle. The no-arg constructor that creates a default triangle. A constructor that creates a triangle with the specified side1, side2, and side3. The accessor methods for all three data fields. A method named getArea() that returnd the area of this triangle A method named getPerimeter() that returns the perimeter of this triangle. A method named toString() that returns a string description for the triangle. For the formula to compute the area of a triangle, see Programming exercise 2.19 the toString() method is implemented as follows: return "Triangle: side1 = " + side1 + "side2 = " + side2 + "side3 = " + side3: Draw the UML diagram fro the classes Triangle and GeometricObject and implement the classes. Write a program that prompts the user to enter three sides of the triangle, a color and a Boolean value to indicate whether the triangle is filled. The program should create a Traiangle object with these sides and set the color and filled properties using the input. The program should display the area, perimeter, color, and true or false to indicate whether it is filled or not.

Reference no: EM131273008

Questions Cloud

Discuss the origin of cpted from oscar newmans concept : Write a paper.- What is CPTED?-  Discuss the origin of CPTED from Oscar Newman's concept of"defensive space".
What is your diversity score : Take a look at the activities listed at the end of the article and reflect on your own activity levels. What is your diversity score? What about your intensity score and percentage intensity score? If you want/can, you can assess your scores from ..
Write a program to test the class myarray : Write a program to test the class myArray. C++ Design and implement the class myArray that solves the array index out of bounds problem and also allows the user to begin the array index starting at any integer.
Company training department : Summarize this information in your. Based on the information you gathered from the manager, make at least 3 recommendations regarding how the training department can be improved. (From Raymond A Noe Fifth edition chapter 13)
Raw the uml diagram fro classes triangle and geometricobject : raw the UML diagram fro the classes Triangle and GeometricObject and implement the classes. Write a program that prompts the user to enter three sides of the triangle, a color and a Boolean value to indicate whether the triangle is filled.
Write a c program that prompts user for an integer : Write a computer program in C programming that prompts user for an integer and determines whether it is an even number or odd. Please include output screenshots for sample inputs 5 and 8.
Conduct and coordination of global business : Do you think global business should place more emphasis on operational or tactical plans? Why? In what positive and negative ways has the Internet changed the conduct and coordination of global business?
Write a c program that adds two input values : Introduction to C programming: Write a C program that adds two input values and outputs the sum and product on the screen.
Write-downs accounted for the remainder : The company's financial statement footnotes indicated that expected employee separation payments amounted to $16.8 million and that fixed asset write-downs accounted for the remainder. Nickolas had never before incurred restructuring charges. At t..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Determining the sub game-perfect equilibrium

First Al shoots targeting one of the other two gangsters. After Al, if alive, Bob shoots, targeting one of the surviving gangsters.

  Define the german transportation otto bonn

First assignment is: Problem Description: The German transportation Otto Bonn is expanding his trucking business into Florida, with shipping centers in Daytona Beach, Gainesville, Jacksonville, Miami, Tallahassee, and Tampa.

  How to enlarge the size of the array

How to enlarge the size of the array? Enlarge the size of the array to 25. Driver will start with 10 objects in it other than has provision for up to 15 new objects. You can use java any API.

  Make an html document that includes a javascript

make an html document that includes a JavaScript program that creates a new constructor function named Automobile in the document head.

  Can data administrator really be on the same level as dba

Should the data administrator really be on the similar level as the DBA (database administrator), usually somewhat low in the corporate hierarchy or should this person have an elevated level of importance.

  Write program to calculate pay of different types of employe

Write program to calculate pay of different types of employe

  Se using your own knowledgehpw an atm is used develop a set

using your own knowledgehpw an atm is used develop a set of use that could be used to derive the requirements for an

  Research best practices for system integration approaches

1.research best practices for system integration approaches such as the systems development life cycle sdlc approach

  Develop the requirements definition for the amazon site

Review the Amazon.com Web site. Develop the requirements definition for the site. Create a list of functional business requirements that the system meets.

  What does the execute bit mean for a directory

What does the 'execute' bit mean for a directory? Show how the execute bit works for referencing files within directories. Does the execute bit need to be set for ANY directory on the path to a file you wish to reference?

  Display all the records for everyone the state ny

Display all the records (and all its fields) for everyone that is in the state "NY." Submit the source code for the solution and the output screenshots for the following list. You can use any appropriate algorithm in the solution.

  Explain the risk management practices you could use

Clearly identifying the major and minor causal factors. Identify and explain the risk management practices you could use to mitigate them and evaluate the applicability of these techniques.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd