Cones come in a few varieties, and we will consider the right circular cone. A cone...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Cones come in a few varieties, and we will consider the right circular cone. A cone with a circular base is a circular cone. A circular cone whose axis is perpendicular to the base is a right circular cone. 1. Create a new class called Cone inside package ca.bcit.comp1510.lab05: a. Include a Javadoc comment at the top of the class. The Javadoc comment should contain: i. The name of the class and a (very) short description ii. An @author tag followed by your name iii. An @version tag followed by the version number. 2. Do not include a main method inside the class definition. As before, the class is not a complete program. 3. Let's not worry about a Cone's location in 3D space (yet!). If we ignore the right circular cone's location, we can represent it with two variables: radius and height. Create instance variables for its radius and height. 4. A Cone has a public constructor which accepts one parameter for each of the instance variables. The body of the constructor should assign each parameter to its respective instance variable. 5. Create an accessor and a mutator for each instance variable. 6. Create a method that returns the volume of the Cone. The formula for the volume V of a cone of radius r and height h = -rh. 7. Create a method that returns the slant height of the Cone. The formula for the slant height SH of a Cone of radius r and height h = r + h. 8. Create a method that returns the surface area of the Cone. The formula for the surface area A of a Cone of radius r and height h = r +r (r + h) 9. Create a toString() method which returns a String composed of the concatenation of the information in the Cone. Cones come in a few varieties, and we will consider the right circular cone. A cone with a circular base is a circular cone. A circular cone whose axis is perpendicular to the base is a right circular cone. 1. Create a new class called Cone inside package ca.bcit.comp1510.lab05: a. Include a Javadoc comment at the top of the class. The Javadoc comment should contain: i. The name of the class and a (very) short description ii. An @author tag followed by your name iii. An @version tag followed by the version number. 2. Do not include a main method inside the class definition. As before, the class is not a complete program. 3. Let's not worry about a Cone's location in 3D space (yet!). If we ignore the right circular cone's location, we can represent it with two variables: radius and height. Create instance variables for its radius and height. 4. A Cone has a public constructor which accepts one parameter for each of the instance variables. The body of the constructor should assign each parameter to its respective instance variable. 5. Create an accessor and a mutator for each instance variable. 6. Create a method that returns the volume of the Cone. The formula for the volume V of a cone of radius r and height h = -rh. 7. Create a method that returns the slant height of the Cone. The formula for the slant height SH of a Cone of radius r and height h = r + h. 8. Create a method that returns the surface area of the Cone. The formula for the surface area A of a Cone of radius r and height h = r +r (r + h) 9. Create a toString() method which returns a String composed of the concatenation of the information in the Cone.
Expert Answer:
Related Book For
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba
Posted Date:
Students also viewed these programming questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Describe, in human terms, why delay and jitter are bad in real time (interactive) voice and video communications. Would these same problems apply to recorded voice and video stored and played back at...
-
The pH factor is a measure of the acidity or alkalinity of water. A reading of 7.0 is neutral; values in excess of 7.0 indicate alkalinity; those below 7.0 imply acidity. Loren Hill states that the...
-
1. A current of 12 A flows through an electric heater operating on 120 V. What is the heater's resistance? 2. The resistance of each brake light on an automobile is 6.6 . Use the fact that cars have...
-
Describe the staffing process in an MNE. How does it differ from that of a domestic-only corporation?
-
Shaylea, age 22, just started working full-time and plans to deposit $5,000 annually into an IRA earning 8 percent interest compounded annually. How much would she have in 20 years, 30 years, and 40...
-
URI's stock has a beta of 1.50, and its required return is 14.00%. If the risk-free rate is 5.00%, what is the required rate of return of the market?
-
Question 20 Stability of a system is: Not yet answered Select one: Marked out of O a. A function of the output 1.00 O b. Independent of zeros locations O c. A function of the input P Flag question O...
-
Andrew, a single individual, has $220,000 in salary and $60,000 in self-employment income in 2017. How much must he pay for his additional Medicare surtax?
-
Explain what is meant by the term the time value of money and provide an example.
-
What was required for the successful implementation of mercantilism?
-
What are the main characteristics of Chinas experience with economic transition?
-
On December 31, 20X1, Tiffin Township paid a contractor $2,000,000 for the total cost of a new firehouse built in 20X1 on township-owned land. Financing was by means of a $1,500,000 general...
-
1. Compare unions in China with unions in the United States. 2. How does the legal environment in terms of unions in China compare with the United States?
-
Comptech Ltd is a manufacturer of optical equipment. In September 2019, Ed Thompson the Chief Research Officer, attended a conference in Switzerland that focused on optical developments for the 21st...
-
Demonstrate that for colors \(r, g\), and \(b\), color \(\mathrm{SU}(3)\) two-quark states are of the form \(q q=\mathbf{3} \otimes \mathbf{3}=\mathbf{6} \oplus \overline{\mathbf{3}}\), with Show...
-
Verify the color SU(3) representations for combinations of three or fewer quarks and antiquarks given in Eq. (19.28). Data from Eq. 19.28 qq=303=108 qq 3 3 603, 999 3 3 3 = 36315, qqq 3 3 3 1088 10,
-
Prove that Eq. (19.34) gives the simplest multi-gluon and gluon-quark states that contain an \(\mathrm{SU}(3)\) color singlet in the decomposition. Data from Eq. 19.34 (GG)1: (88)1 (Gqq) : [8 (383)8]...
Study smarter with the SolutionInn App