Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a script that will calculate a persons weight on each planet of the solar system, the sun, and the moon. You should create an

Write a script that will calculate a person’s weight on each planet of the solar system, the sun, and the moon. You should create an html form with text boxes for each planet (also the sun and moon). You should also have a text box for a person to enter their weight on Earth. When the user clicks on a button, a javascript function should be called that calculates each weight and puts the results in the corresponding text boxes in the form. Use the Math.round method to round the numbers to the nearest whole number. Here are some formulas for the conversions.

Mercury = weight * .378

Venus = weight * .907

Mars = weight * .377

Jupiter = weight * 2.364

Saturn = weight * .916

Uranus = weight * .889

Neptune = weight * 1.125

Pluto = weight * .067

Sun = weight * 27.072

Moon = weight * .166

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Enter Your Weight on Earth Mercury Venus Mars Jupiter Saturn ... 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

Step: 3

blur-text-image

Document Format ( 2 attachments)

PDF file Icon
60960e90ab018_26552.pdf

180 KBs PDF File

Word file Icon
60960e90ab018_26552.docx

120 KBs Word File

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

The Physical Universe

Authors: Konrad B Krauskopf, Arthur Beiser

16th edition

77862619, 978-0077862619

More Books

Students also viewed these Algorithms questions

Question

What is the law of Prgnanz and how can it be illustrated?

Answered: 1 week ago