Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

please no user input. just make method and call it in main The average person can jump off the ground with a velocity of 7

please no user input. just make method and call it in mainimage text in transcribed

The average person can jump off the ground with a velocity of 7 mph without fear of leaving the planet. However, if an astronaut jumps with this velocity while standing on Halley's Comet, will the astronaut ever come back down? Create a method that will take in a launch velocity (in mph) from the surface of Halley's Comet and determines whether a jumper will return to the surface. If not, the method should calculate how much more massive the comet must be to return the jumper to the surface. The method should return a String that states if the astronaut will return or not, and if not, it will need to state a lower bound for how massive the comet would need to be in order for the astronaut to return. For example, your output might be something like "The astronaut will not return to Halley's Comet. In order for the astronaut to return, the comet would need to have a mass larger than 5.2 x 1025". Escape velocity can be computed using the following equation: Vescape - 2d, where G 6.67 x 10-( 2GM Nm is the gravitational constant, M = 1.3 1022 kg is the mass kg2 CS 2110 Spring 2018 Homework 1 of Halley's Comet and R = 1.153 106m is its radius (Not really but use these numbers for this problem!). Note that the unit in the above formula for velocity is not mph! The method header for this problem is: public static String escape (double v)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students explore these related Databases questions