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
-
Create a Google Ads campaign for a business, including keyword research, ad copy creation, and bid management.
-
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...
-
A random sample of n = 35 observations from a quantitative population produced a mean = 2.4 and a standard deviation s = .29. Suppose your research objective is to show that the population mean m...
-
Discuss the role of project participants in achieving project success. Discuss the skills, knowledge, functions, attitudes, behavior, or other factorswhere appropriate necessary from each of the...
-
Identify any trees in Figure 12.205. If a graph is not a tree, explain how you know. 20 b f d g Graph M h Graph N m Figure 12.205 Graphs M, N, and P S t r 9 Graph P
-
Harold Jones, the financial aid officer at a small university, manages all aspects of the financial aid program. Jones receives requests for aid from students, determines whether the students meet...
-
What did Page and Brin find that authoritative, relevant websites had in common?
-
Answer this question after reading the below post: Which of these five management styles do you prefer when dealing with conflict and why? Recognizing that conflict and conflict resolution will be a...
-
Non-Ferrous Materials Assignment Quiz Credit: 50 pts Everyone will prepare a short hand-written summary (bullet points not paragraphs) on one of the material families listed below. In this summary...
-
A 14 year old male presents with a two week history of persistent dry cough, progressive dyspnea on exertion, orthopnea, easy fatigability, variable dysphagia with solids, and weight loss. On...
-
5. | Medical: Blood Glucose A person's blood glucose level and diabetes are closely related. Let x be a random variable measured in milligrams of glucose per deciliter (1/10 of a liter) of blood....
-
(a) Let f(x) = e, x>0. Use induction to prove that, for every n > 1, the n'th derivative f(n) (x) is of the form Pn(1/x) efor some polynomial Pn (depending on n). (b) Define g(x) = {o 0 if x < 0 e if...
-
Use the given zero to find all the zeros of the function. (Enter your answers as a comma-separated list. Enter all answers using the appropriate multiplicities. Include the given zero in your...
-
Question 1 Manufacturing Overhead 9 marks Bahubali Ltd allocates manufacturing overhead to work in process based on direct labour hours. On 1st January of the current year, there were no balance in...
-
The slopes of the tangents at the points where the curve y = x2 - 4x intersects the X-axis is 1) 1 2) +2 3) +3 4) +4
-
Eighty-nine percent of chemical companies use the LIFO inventory method for the costing of inventories, whereas only 8 percent of computer equipment companies use LIFO.12 Describe the LIFO inventory...
-
Crazy Eddie, Inc., a discount consumer electronics chain, seemed to be missing $52 million in merchandise inventory. It was a shock, the new management was quoted as saying. It was also one of the...
-
MacRae Company merchandises a single product called Sooto. The following data represent beginning inventory and purchases of Sooto during the past year: January 1 inventory, 68,000 units at $11.00;...
Study smarter with the SolutionInn App