Questions
Create four classes named: Planet, solarSystem, Earth and Moon, 1. Think how to use inheritance in...

Create four classes named: Planet, solarSystem, Earth and Moon,
1. Think how to use inheritance in three classes
2. solarSystem has
Name, color, Diameter_Miles, dist_From_Sun and perimeter =(float) 3.14*Diameter_Miles;
3. Moon has the following attributes:
Name, color, Diameter_Miles, dist_From_Sun, surface_area = 4*3.14*Radius*Radius;
And volume = (4/3)*(3.14)*(Radius_Miles)*(Radius_Miles)*(Radius_Miles);
4. Planet has the following attributes:
Name, color, Diameter_Miles, dist_From_Sun and volume = (4/3)*(3.14)*(Radius_Miles)*(Radius_Miles)*(Radius_Miles);
5. Earth has the following attributes:
Name, color, Diameter_Miles, dist_From_Sun and volume = (4/3)*(3.14)*(Radius_Miles)*(Radius_Miles)*(Radius_Miles);
Every class has constructor to initialize the input variables and measurements Method that prints the following:
From the solarSystem Class consider the following inputs: name ="solar System", color="multi", Diameter_Miles=7500000000L, dist_From_Sun =3666000000L
The output should be:
Name Of The solarSystem : solar System
Colour Of The solarSystem : multi
Distance From the Sun : 3666000000 miles
Perimeter of the solarSystem : 2.35500012E10 miles
--------------------------------------
From the Planet Class consider the following inputs: name =" Earth ", color=" blue", Diameter_Miles=3959L, dist_From_Sun =93000000L
The output should be:
Name Of The Planet : Earth
Colour Of The Planet : blue
Distance From the Sun is : 93000000 miles
Volume Of The Planet : 1.9484360366806003E11 cubic units
From the Earth Class consider the following inputs: name =" Earth ", color=" blue", Diameter_Miles=3959L, dist_From_Sun =93000000L
The output should be:
Name Of The Planet : Earth
Colour Of The Planet : blue
Distance From the Sun is : 93000000 miles
Volume Of The Planet : 1.9484360366806003E11 cubic units
-----------------
From the Moon Class consider the following inputs: name =" Luna", color=" silvery ", Diameter_Miles=1740L, dist_From_Sun =238900L
The output should be:
Name Of The Moon : Luna
Colour Of The Moon : silvery
Distance From the Mother Planet : 238900 miles
Surface area Of The Moon : 3.8026656E7 km^2
---------------

java

In: Computer Science

Need some assistance with a java program “Square,” that will implement a data type Square that...

Need some assistance with a java program “Square,” that will implement a data type Square that represents squares with the x and y coordinates of their upper-left corners and the length.

The API should be as follows.

Square(double x, double y, double length) //constructor

double area() //returns the area of the square

double perimeter() //returns the perimeter of the square

boolean intersects(Square b) //does this square intersect b? Two squares would intersect if they share one or more common points

boolean contains(Square b) //does this square contain b?

void draw() //draw this square on standard drawing

Note: The program should include a main method to test that it does the following.

  • Instantiate a Square object whose upper-left corner coordinates and length are given as command-line arguments. It should print out the area and perimeter of the square.

  • Prompt the user for a second square’s upper-left corner coordinates and length, and indicate whether it intersects with the square specified earlier and also whether it contains the square specified earlier.

  • Provide a pop-up window that displays the two squares.

A sample run would be as follows.

>java Square 0.2 0.7 0.3

The area is 0.09

The perimeter is 1.2

Enter the upper-left coordinates and the length of a square: 0.3 0.6 0.4

In: Computer Science

if a 12x12 matrix a shows the distance between 12 cities in kilometers. how can you...

if a 12x12 matrix a shows the distance between 12 cities in kilometers. how can you obtain from A the matrix B showing these distances in miles?

In: Advanced Math

In a study of 11 comma 00011,000 car​ crashes, it was found that 5544 of them...

In a study of

11 comma 00011,000

car​ crashes, it was found that

5544

of them occurred within 5 miles of home​ (based on insurance company​ data). Use a 0.01 significance level to test the claim that more than​ 50% of car crashes occur within 5 miles of home. Use this information to answer the following questions.

z =

​(Round to two decimal places as​ needed.)

c. What is the​ P-value?

​P-value=

​(Round to four decimal places as​ needed.)

d. What is the​ conclusion?

e. Are the results questionable because they are based on a survey sponsored by an insurance​ company?

In: Statistics and Probability

.Tire manufacturer is interested in testing the fuel economy for two different tread patterns. Tires of...

.Tire manufacturer is interested in testing the fuel economy for two different tread patterns. Tires of each tread type were driven for 1000 miles on each of 9 different cars. The mileages, in miles per gallon, were as follows. Test whether the mean mileage is the same for both types of tread. (ANOVA test)

Car 1 2 3 4 5 6 7 8 9
Tread A 24.7 22.5 24.0 26.9 22.5 23.5 22.7 19.7 27.5
Tread B 20.3 19.0 22.5 23.1 20.9 23.6 21.4 18.2 25.9

In: Statistics and Probability

Suppose an automobile manufacturer designed a new engine and needs to find the best grade of...

Suppose an automobile manufacturer designed a new engine and needs to find the best grade of gasoline for the best (highest) miles per gallon. The four grades are regular, economy, premium, and super premium. The test car made three trial runs on the test track using each of the four grades. The miles per gallon were recorded for each grade. Put these data into Minitab (STAT>ANOVA>OneWay>(Response data are in separate columns) ) and answer the following questions. Use Hmwk1Prob1Data Should the researcher print out a Tukey Comparison to see which grades have higher or lower gas mileage?

In: Statistics and Probability

On 1 Jan. 2015, Miles Ltd. acquired a machine for $300,000 cash. The machine has an...

On 1 Jan. 2015, Miles Ltd. acquired a machine for $300,000 cash. The machine has an estimated useful life of 10 years with no residual value. On 31 December 2016, based on evidence that the machine was impaired, the company estimated the recoverable amount of the machine to be $200,000. On 31 December 2018, there was evidence for reversal of impairment of the machine and the recoverable amount on this date was $170,000. Assume there is no change in the useful life of the machine. Miles Ltd. measured its machines using the cost model and adopts straight-line depreciation for its machines.

Prepare all relevant entries relating to this machine for 2015 to 2018.

In: Accounting

DESIGH A FLOWCHART IN FLOWGORITHM Speeding Violation Calculator. Design a program that calculates and displays the...

DESIGH A FLOWCHART IN FLOWGORITHM

Speeding Violation Calculator. Design a program that calculates and displays the number of miles per hour over the speed limit that a speeding driver was doing. The program should ask for the speed limit and the driver's speed.

Validate the input as follows:

The speed limit should be at least 20, but not greater than 70.

The driver's speed should be at least the value entered for the speed limit (otherwise the driver was not speeding) Once correct data has been entered, the program should calculate and display the number of miles per hour over the speed limit that the driver was doing.

PLEASE AND THANK YOU

In: Computer Science

Julia enjoys jogging. She has been jogging over a period of several years, during which time...

Julia enjoys jogging. She has been jogging over a period of several years, during which time her physical condition has remained constantly good. Usually she jogs 2 miles per day. During the past year Julia recorded how long it took her to run 2 miles. She has a random sample of 95 of these times. For these 95 times the mean was 15.60 minutes and the standard deviation s=1.80 minutes. Find the margin of error (round to 2 decimal places) and the 90% confidence interval for Julia’s average running time.

In: Math

Four of your friends are planning a morning of boating on the Big Blue River. Two...

Four of your friends are planning a morning of boating on the Big Blue River. Two of them plan to start at the Rocky Ford Campground at 9:00 AM and drift down the river with the current in kayaks. The other two plan to start at the parking lot near the US-24 bridge, at the same time as the first pair, and travel upstream in a square-stern canoe with an outboard motor. You own a pickup truck with a high wheelbase, and you are friendly with all the farmers and property owners in the area, so they ask you to pick up them and their boats at the time and place where they will meet. You agree.

You research this section of the Big Blue River and find the following conditions that morning:

Depth: 12.8 feet

Average width: 200 feet

Flow: 13800 ft3/s

Water speed: 8.1 ft/s = 5.5 miles/hr

Water temperature: 78.5 degF

You check a map and find that distance between Rocky Ford Campground and the US-24 bridge parking lot is 4 miles “as the crow flies,” or 8 miles along the river. Your friends with the square-stern canoe say it can travel 2 miles on a still lake in 15 minutes.

(1) At what time should you pick up your friends?

(2) Where should you pick up your friends? (Express this answer in terms of distance downstream from Rocky Ford or upstream from US-24.)

In: Physics