1. Using SolarSystem as the base class, create two derived classes InnerPlanet and OuterPlanet.2. Create classes...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Using SolarSystem as the base class, create two derived classes InnerPlanet and OuterPlanet.2. Create classes for each planet and categorized them in the two derived classes. 3. Create a Moon class for planet Earth only and load it with2 distinct properties. 4. Create at least 2 distinct properties for each planets. 5. Create a Main class that will print all the necessary properties (fields and behaviors). 6. Submit all the java files. 1. Create a file and name it CFActivity_(your lastname).java 2. Create a List containing names of planets. 3. Create another List containing ordinality of planets. 4. Create a Map containing the ordinality and names of planets. 5. Print all Map attributes in this manner: 1. Using SolarSystem as the base class, create two derived classes InnerPlanet and OuterPlanet.2. Create classes for each planet and categorized them in the two derived classes. 3. Create a Moon class for planet Earth only and load it with2 distinct properties. 4. Create at least 2 distinct properties for each planets. 5. Create a Main class that will print all the necessary properties (fields and behaviors). 6. Submit all the java files. 1. Create a file and name it CFActivity_(your lastname).java 2. Create a List containing names of planets. 3. Create another List containing ordinality of planets. 4. Create a Map containing the ordinality and names of planets. 5. Print all Map attributes in this manner:
Expert Answer:
Answer rating: 100% (QA)
Solution java 1 Using SolarSystem as the base class create two derived classes InnerPlanet and OuterPlanet class SolarSystem common properties of all planets String name double mass double radius doub... View the full answer
Related Book For
Business Statistics In Practice
ISBN: 9780073401836
6th Edition
Authors: Bruce Bowerman, Richard O'Connell
Posted Date:
Students also viewed these programming questions
-
answer the question clearly You are building a flight-control system for which a convincing safety case must be made. Would you assign the tasks of safety requirements engineering, test case...
-
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...
-
Santa's Helpers Ltd estimates its income taxes at 35% of pre-tax income. For the quarter ended September 30, pre-tax income was $200,000. Prepare the journal entry to record the estimated income...
-
Graph the following aggregate supply and demand curves (be sure to draw to scale). 1. What is the equilibrium price level? 2. What is the equilibrium output? 3. If the quantity of output demanded at...
-
Find the optimal order quantity for an annual demand of 10,000 units, a cost per unit of $3, an inventory-carrying charge rate of 20 percent, and an order cost of $32. For orders between 100 and 1999...
-
Reconsider the data from Problem 56. What is the capital recovery cost of Model 127B? Data from problem 56 Octavia Bakery is planning to purchase one of two ovens. The expected cash flows for each...
-
Tots to Teens is a catalog retailer specializing in children's clothing. A project has been underway to develop a new order-entry system for the company's catalog clerks. The old system had a...
-
(20%) The output of an argon ion laser can consist of a number of modes of frequency that match the cavity resonance condition and are within the gain bandwidth of the lasing transition. Assume the...
-
What test can be performed to compare the breast cancer incidence rate between the ¥ 30.0g group and the 0g group? Cancer A paper was recently published concerning the association between alcohol...
-
How much are you willing to pay today for a share of DCU Corp if its current dividend is $1.50 and dividends are expected to grow at an annual rate of 20% percent for the next 5 years? You want a...
-
50 X John is 25 years old and wants to have 1 million dollars in savings by the time he retires at 65. He plans to open a savings account that pays 4% interest compounded quarterly and he will be...
-
1) Mr. Ang's money became Php165,000 @ the end of 10 months. If the bank pays 12% annually, how much was his money @ the start? 2) Mr. So borrowed Php200,000 from a cooperative that charges 15%...
-
Given the following code, what are the constraints on the input argument? int mystery(int num) { if (num == 0) return 0; else if (num > 100) return -1; else return num + mystery (num - 1);
-
Write a program called reservations.c that simulates some people trying to reserve seats at a restaurant for dinner. The program MUST work as follows: ? The restaurant takes reservations anywhere...
-
A worker applies a torque to a nut with a wrench 0.200 m long. Because of the cramped space, she must exert a force upward at an angle of 50.0 with respect to a line from the nut through the end of...
-
A conducting loop of wire of radius 5.30 cm and resistance 0.100 2, lies within a uniform magnetic field directed into the page, as shown in the figure above. At t= Os, the magnetic field decreases...
-
Explain the term "Equivalent Units". Why are they calculated in process costing? [4 Marks] [minimum 350 words]
-
Define and interpret each of the following: a. Expected payoff of sampling, EPS b. Expected payoff of no sampling, EPNS. c. Expected value of sample information, EVSI. d. Expected net gain of...
-
Recall from Exercise 6.69 that individual forecasts of a particular interest rate are normally distributed with a mean of 5 percent and a standard deviation of 1.2 percent. a. What percentage of...
-
In the book Production/Operations Management, William J. Stevenson presents a decision tree concerning a firm's decision about the size of a production facility. This decision tree is given in Figure...
-
What are the three main types of assistance available to the general public for completing their tax forms?
-
Ask older friends or relatives about the cost of specific items (e.g., a gallon of gas, a cup of coffee, etc.) during their youth. Also inquire bout their average wages in the past. Compare the...
-
Develop and solve a future-value, a present-value, a future value of an annuity, and a present value of an annuity problem. Establish the three known variables in each problem and solve for the...
Study smarter with the SolutionInn App