subject

Code in vmware fusion? problem #1: space cadet! on the moon the gravitational force is less, which means a person only weighs 1/6 of their normal weight on the moon. prompt the user for their weight and then tell them what they would weigh on the surface of the moon. • user input (ask & validate in main method, use as arguments): o astronaut’s weight (in pounds) • return value from custom function: o weight on the moon • result to print to the console in the main method: o “on earth you weigh x lbs, but on the moon you would only weigh y lbs.” • data sets to test o astronaut’s weight – 160 § results-“onearthyouweigh160lbs, butonthemoonyouwouldonly weigh 26.67 lbs.” o astronaut’s weight – 210 § results-“onearthyouweigh210lbs, butonthemoonyouwouldonly weigh 35 lbs.” o astronaut’s weight – one hundred pounds § results–re-promptfornumbervalue. o test one of your own and put all 4 of these test values in a multi-lined comment at the end of your code.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:20
Quincy would like to view the contents of a specific message in his inbox. a portion of his computer screen is shown. what should quincy do in order to complete this task? 1. click on the inbox in the navigation pane, and click on the specific message in the folder pane to display its contents. 2. click on the inbox in the outlook today window, and click on the specific message in the folder pane to display its contents. 3. double-click the message’s header in the outlook today window, and right-click on the specific message to display its contents. 4. double-click the mail option in the navigation pane, and right-click on the specific message to display its contents.
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Rafael needs to add a title row to a table that he has inserted in word. what should he do? use the alignment options. use the merge and center option for all the cells in the top row. use the merge and center option on the first two cells in the top row. none of the above
Answers: 3
question
Computers and Technology, 23.06.2019 21:20
For positive constants a and b, the force between two atoms in a molecule is given f(r) = −a r2 + b r3 , where r > 0 is the distance between the atoms. note: a and b are upper case letters. (a) find f '(r) = (b) find the critical point for f(r). r = (c) find f ''(r) = (d) find the value of r so that f ''(r) = 0.
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
What is one potential problem associated with an organization purchasing new technology early in its lifecycle
Answers: 1
You know the right answer?
Code in vmware fusion? problem #1: space cadet! on the moon the gravitational force is less, whic...
Questions
question
History, 16.05.2021 19:40
question
Mathematics, 16.05.2021 19:40
question
Biology, 16.05.2021 19:40
Questions on the website: 13722367