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, 21.06.2019 20:30
marketing strategies should be established before marketing objectives are decided. t/f
Answers: 1
question
Business, 22.06.2019 16:40
Determining effects of stock splits oracle corp has had the following stock splits since its inception. effective date split amount october 12, 2000 2 for 1 january 18, 2000 2 for 1 february 26, 1999 3 for 2 august 15, 1997 3 for 2 april 16, 1996 3 for 2 february 22, 1995 3 for 2 november 8, 1993 2 for 1 june 16,1989 2 for 1 december 21, 1987 2 for 1 march 9, 1987 2 for 1 a. if the par value of oracle shares was originally $2, what would oracle corp. report as par value per share on its 2015 balance sheet? compute the revised par value after each stock split. round answers to three decimal places.
Answers: 1
question
Business, 22.06.2019 21:40
Rebel technology maintains its records using cash-basis accounting. during the year, the company received cash from customers, $43,000, and paid cash for salaries, $23,500. at the beginning of the year, customers owe rebel $1,000. by the end of the year, customers owe $6,600. at the beginning of the year, rebel owes salaries of $5,600. at the end of the year, rebel owes salaries of $3,300. determine cash-basis net income and accrual-basis net income for the year.
Answers: 2
question
Business, 22.06.2019 23:50
Cash flows during the first year of operations for the harman-kardon consulting company were as follows: cash collected from customers, $360,000; cash paid for rent, $44,000; cash paid to employees for services rendered during the year, $124,000; cash paid for utilities, $54,000.in addition, you determine that customers owed the company $64,000 at the end of the year and no bad debts were anticipated. also, the company owed the gas and electric company $2,400 at year-end, and the rent payment was for a two-year period.calculate accrual net income for the year.
Answers: 2
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
Geography, 23.08.2019 13:00
Questions on the website: 13722367