subject
Business, 13.05.2021 23:50 genyjoannerubiera

Create a class called Tree. It is required to have the following: 4 fields o name, String, the type of tree (pine, cedar, oak, etc.). o age, integer, the approximate age of the tree. o circumference, double, the approximate circumference of the tree (in inches). omarker, boolean, indicates if the tree has a marker on it. This is true if it has a marker and false if it doesn't. 7 methods o a constructor that accepts as arguments the values for the fields above, in the order listed. o a copy constructor that makes a copy of a Tree object. o a setCircumference method that accepts a double argument, which is used to set the circumference field. o a setMarker method that accepts a boolean argument, which is used to set the marker field. o a radius method that has no arguments and returns a double that is the radius of the tree. The radius can be calculated as radius = circumference /(2 x PI). Pl is 3.14. o an equals method that returns a boolean indicating if two objects contain the same information. If they do, it returns true, false otherwise. The objects contain the same information when the name and age fields indicate the same values. o a toString method that returns a String that contains on separate lines (5 lines), the names and values for each field, and the radius. Display double values to 2 decimal places. Demonstrate your class in a program. Your demo program is required to: • create at least two Tree objects. • create a copy of a Tree object. • use each of the other five methods to show they work properly. You may have to use a method more than once to show it works properly. • do not explicitly call the toString method in your demo program. Call it implicitly. Your class and demo program are required to: • be properly commented • follow the programming conventions we used in the course have appropriate variable names the Tree class must be in a separate file.  please solve. computer programming

please​

ansver
Answers: 3

Another question on Business

question
Business, 22.06.2019 05:00
At which stage would you introduce your product to the market at large? a. development stage b. market testing stage c. commercialization stage d. ideation stage
Answers: 3
question
Business, 22.06.2019 11:00
When partners own different portions of the business, the terms should be stated clearly in what document? the articles of incorporation the executive summary the business summary the partnership agreement
Answers: 3
question
Business, 22.06.2019 17:00
Aaron corporation, which has only one product, has provided the following data concerning its most recent month of operations: selling price $ 102 units in beginning inventory 0 units produced 4,900 units sold 4,260 units in ending inventory 640 variable costs per unit: direct materials $ 20 direct labor $ 41 variable manufacturing overhead $ 5 variable selling and administrative expense $ 4 fixed costs: fixed manufacturing overhead $ 64,200 fixed selling and administrative expense $ 2,900 the total contribution margin for the month under variable costing is:
Answers: 2
question
Business, 22.06.2019 20:20
Digitalhealth electronics inc. is a company that builds diagnostic devices. it was the first company to develop a compact mri scanner by reconfiguring the components of the mri technology. this smaller and user-friendly version of the huge mri scanner created demand from small hospitals, nursing homes, and private practice doctors who were earlier dependent on the scanning machines in large hospitals. which of the following types of innovations does this scenario best illustrate? a. disruptive innovation b. incremental innovation c. radical innovation d. architectural innovation
Answers: 3
You know the right answer?
Create a class called Tree. It is required to have the following: 4 fields o name, String, the type...
Questions
question
History, 15.07.2019 10:50
Questions on the website: 13722367