Computers and Technology

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 20:30, kokilavani
In the context of it jobs in the information systems field. a is responsible for database design and implementation
Answers: 3
image
Computers and Technology, 23.06.2019 15:30, jokerr6323
1. ask the user how many questions are in the quiz. 2. ask the user to enter the key (that is, the correct answers). there should be one answer for each question in the quiz, and each answer should be an integer. e. g., 34 7 13 100 81 3 9 10 321 12 might be the key for a 10-question quiz. you will need to store the key in an array. 3. ask the user to enter the answers for the quiz to be graded. there needs to be one answer for each question. note that these answers do not need to be stored; each answer can simply be compared to the key as it is entered. 4. when the user has entered all of the answers to be graded, print the number correct and the percent correct. 5. add a loop so that the user can grade any number of quizzes with a single key. after the results have been printed for each quiz, ask "grade another quiz? (y/n)." note: you only have one array (the key). you are not creating a new key for each set of quiz answers.
Answers: 3
image
Computers and Technology, 23.06.2019 20:30, lucywood2024
What is the biggest difference between section breaks and regular page breaks
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, RG1971
(, urgent need): how do i change my username
Answers: 1
Do you know the correct answer?
Code in vmware fusion? problem #1: space cadet! on the moon the gravitational force is less, whic...

Questions in other subjects:

Konu
Mathematics, 11.10.2019 05:30