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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:40, penelopymorales24
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
image
Computers and Technology, 23.06.2019 04:40, Koriunaa
The narrative structure of the popular movies can be broken down into
Answers: 3
image
Computers and Technology, 23.06.2019 09:30, nsjcbdhcb
Light travels at a speed of 186,000 miles a second. the distance light travels in a year is 5,865,690,000,000 miles/year 5,865,695,000,000 miles/year 58,656,950,000,000 miles/year 6,789,000,0000 miles/year
Answers: 1
image
Computers and Technology, 23.06.2019 21:40, gaby06
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
You know the right answer?
Code in vmware fusion? problem #1: space cadet! on the moon the gravitational force is less, whic...

Questions in other subjects: