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

  Create an array that store peoples first names

Create an array of people's first names. Using a loop, read the names from a text (txt) file, and store each one into the array. The array should allow for a maximum of 100 entries.

  Develop a report using word-processing software in that

develop a report using word-processing software. in that report address the followinga. identify the elements that you

  Make a 2010 word flowchart listing the steps

You are sitting on a chair in a large room. You see an empty chair, facing you, across the room. You want to get to that chair on the other side of the room and sit in it.

  What are the boundary conditions for this system

E19: Numerical Methods for Engineering Applications Spring 2016 - HOMEWORK 12. Based upon the code, what are the boundary conditions for this system? What temperature are we assuming (either implicitly or explicitly) lies along the border of the pl..

  Reengineer the program in order to fit the new objectives

Reconstruct four (4) steps taken by Mayor Schell to reengineer the program in order to fit the new objectives

  Make a gui that will create the objects

sketch a GUI that will create the objects and provide access to each object's processing methods.

  How input from an html5 form is retrieved in a php program

Describe how input from an HTML5 form is retrieved in a PHP program.

  Determine the costs of this massive expansion of

business intelligence knowledge management and expert systems are powerful tools that allow corporations to analyze

  Solves a system of linear equations

Write a function that solves a system of linear equations or calculates the inverse of a matrix by Gauss-Jordan elimination.

  As a software engineer what are the means of tracking you

as a software engineer what are the means of tracking you would use to track and monitor the reuse history of a

  Difference between stratified and random sampling

What is the difference between stratified and random sampling and what were the similarities and differences between oneperquad and twoperquad? Be sure to explain pattern, dispersion, and density.

  Define mitigation strategies to enable business continuity

It is estimated that three out of five businesses that experience downtime of 48 hours or more will be out of business within 3 years. Creating a technology risk mitigation and data protection plan requires people, method  and technology in the ri..

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