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 21:00
If you have a lien on your vehicle, you cannot apply for a duplicate copy of your vehicle’s certificate of title. true or false
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print
Answers: 3
question
Computers and Technology, 23.06.2019 18:30
Write a program that prints the day number of the year, given the date in the form month-day-year. for example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. the program should check for a leap year. a year is a leap year if it is divisible by 4, but not divisible by 100. for example, 1992 and 2008 are divisible by 4, but not by 100. a year that is divisible by 100 is a leap year if it is also divisible by 400. for example, 1600 and 2000 are divisible by 400. however, 1800 is not a leap year because 1800 is not divisible by 400.
Answers: 3
question
Computers and Technology, 23.06.2019 19:00
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
You know the right answer?
Code in vmware fusion? problem #1: space cadet! on the moon the gravitational force is less, whic...
Questions
question
English, 05.06.2021 02:30
question
Mathematics, 05.06.2021 02:30
question
Mathematics, 05.06.2021 02:30
question
Mathematics, 05.06.2021 02:30
question
Mathematics, 05.06.2021 02:30
Questions on the website: 13722360