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

Other questions on the subject: Business

image
Business, 22.06.2019 01:30, whocaresfasdlaf9341
If a firm plans to issue new stock, flotation costs (investment bankers' fees) should not be ignored. there are two approaches to use to account for flotation costs. the first approach is to add the sum of flotation costs for the debt, preferred, and common stock and add them to the initial investment cost. because the investment cost is increased, the project's expected return is reduced so it may not meet the firm's hurdle rate for acceptance of the project. the second approach involves adjusting the cost of common equity as follows: . the difference between the flotation-adjusted cost of equity and the cost of equity calculated without the flotation adjustment represents the flotation cost adjustment. quantitative problem: barton industries expects next year's annual dividend, d1, to be $1.90 and it expects dividends to grow at a constant rate g = 4.3%. the firm's current common stock price, p0, is $22.00. if it needs to issue new common stock, the firm will encounter a 6% flotation cost, f. assume that the cost of equity calculated without the flotation adjustment is 12% and the cost of old common equity is 11.5%. what is the flotation cost adjustment that must be added to its cost of retaine
Answers: 1
image
Business, 22.06.2019 10:10, cuthbertson157
conquest, inc. produces a special kind of light-weight, recreational vehicle that has a unique design. it allows the company to follow a cost-plus pricing strategy. it has $9,000,000 of average assets, and the desired profit is a 10% return on assets. assume all products produced are sold. additional data are as follows: sales volume 1000 units per year; variable costs $1000 per unit; fixed costs $4,000,000 per year; using the cost-plus pricing approach, what should be the sales price per unit?
Answers: 2
image
Business, 22.06.2019 19:30, jcastronakaya
When it is 4: 00 a. m. in halifax, it is 1: 00 p. m. in karachi, and when it is 9: 00 a. m. in karachi, it is 5: 00 a. m. in warsaw. mary left halifax to fly to karachi, but she accidentally left her watch on warsaw time. according to mary’s watch, she left halifax at 9: 40 p. m. on monday. the local time when she arrived at karachi was 3: 00 p. m. tuesday. how long was mary’s flight? a. 9 hours, 20 minutes b. 13 hours, 20 minutes c. 14 hours, 20 minutes d. 17 hours, 20 minutes
Answers: 1
image
Business, 22.06.2019 19:40, pchisholm100
You estimate that your cattle farm will generate $0.15 million of profits on sales of $3 million under normal economic conditions and that the degree of operating leverage is 2. (leave no cells blank - be certain to enter "0" wherever required. do not round intermediate calculations. enter your answers in millions.) a. what will profits be if sales turn out to be $1.5 million?
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 in other subjects:

Konu
Mathematics, 06.02.2021 01:00
Konu
Biology, 06.02.2021 01:00
Konu
Mathematics, 06.02.2021 01:00
Konu
Chemistry, 06.02.2021 01:00
Konu
Mathematics, 06.02.2021 01:00
Konu
Mathematics, 06.02.2021 01:00