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

  Drawbacks to ethernet, token ring, fddi, and wireless

drawbacks to Ethernet, Token Ring, FDDI, and wireless.

  Write down a short design critique

Browse the Web for instances of poor typography. Write a short design critique of why the type is confusing or misleading to the user. Create a document with screen shots from the Web page to accompany your critique.

  Designing an inventory management system

Xhemrock is a brake pad manufacturing company. This company utilizes the raw materials, like carbon powder, ash, iron, and resin. It wishes to design an inventory management system which will have the following attributes: The system must store th..

  Icmp packets

Involve at least five ICMP packets, and also explain why they would be a problem on the network.

  Questionconsider a system with 2 multiprocessors with

questionconsider a system with 2 multiprocessors with following configurations-a machine 1 a numa machine with 2

  Develop an opinion as to the degree to which hypertext links

Select two opposing viewpoints from web sources and by providing a review of their content develop an opinion as to the degree to which hypertext links are a good idea.

  Cashregister requires to support a method void undo()

imagine the CashRegister needs to support a method void undo() that undoes the addition of the preceding item. This enables a cashier to quickly undo a mistake. What instance variables should you add to the CashRegister class to support this modif..

  Show the configuration of all the variables and the output

In the following program, show the configuration of all the variables and the output.

  How long it took you to solve each of the puzzles

What assumptions you made; what deductions you made, etc. What are the English cleartexts from which these two ciphertexts were derived? How long it took you to solve each of the puzzles.

  Questionfirewalls are able to be implemented in different

questionfirewalls are able to be implemented in different ways. consider a devoted firewall device. what is its key

  Suppose the network is packet-switched virtual circuit

there is a wide area network in which a special route was selected.propagation delay is so small that it could be

  They want ot add calculation of shipping and tax

Each step takes 7 days except mail, that is the next day after personalize.

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