Computer Science I NEED HTML AND JAVASCRIPT FILE CODES for this question The weight of water makes a nice standard when weighing things. Someone somewhere decided that a cup of water weighed 8 oz and that other substances could either float or sink in a cup of water. Here's how much a cup of the following substances weighs: Substance Weight of 1 cup (in oz.) Water 8 oz. Olive Oil 7.344 oz. Heavy Cream 7.95 oz. Light Cream 8.096 oz. Skim milk 8.264 oz. Air 0.0097 oz. Oxygen 0.011 oz. CO2 0.014 oz. Hydrogen 0.00066 oz. Sugar 12.4 oz. Honey 11.36 oz. Salt 17.32 oz. Ice (32F) 7.32 oz. Sea water 8.2 oz. Gold 154.4 oz. It has become handy to compare the weight of other substance compared to an equal volume of water. This ratio is called specific gravity so, for instance, a cup of gold, which weighs 154.4 oz. is 19.3 times as heavy as a cup of water (8 oz.). We say that gold has a specific gravity of 19.3 Create a web page that has two input boxes and a button. When the user enters, say, 'honey' into the first input box and the weight of a cup of that honey into the second input box (11.36 oz. in this case) and then presses the button, a message appears saying 'The specific gravity of honey is 1.42'. Test out your web page with 4 or 5 substances from the list above to make sure it is producing correct results. (You might want to verify results using either a calculator or a spreadsheet). Include an appropriate tag and an appropriate <h1> tag on the page. The two input boxes should each be placed on their own line with appropriate explanatory text. The button should appear below them (with its own appropriate button text) and the results message should appear below the button.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Computer Science

I NEED HTML AND JAVASCRIPT FILE CODES for this question

The weight of water makes a nice standard when weighing things. Someone somewhere decided that a cup of water weighed 8 oz and that other substances could either float or sink in a cup of water. Here's how much a cup of the following substances weighs:

Substance Weight of 1 cup (in oz.)
Water 8 oz.
Olive Oil 7.344 oz.
Heavy Cream 7.95 oz.
Light Cream 8.096 oz.
Skim milk 8.264 oz.
Air 0.0097 oz.
Oxygen 0.011 oz.
CO2 0.014 oz.
Hydrogen 0.00066 oz.
Sugar 12.4 oz.
Honey 11.36 oz.
Salt 17.32 oz.
Ice (32F) 7.32 oz.
Sea water 8.2 oz.
Gold 154.4 oz.

It has become handy to compare the weight of other substance compared to an equal volume of water. This ratio is called specific gravity so, for instance, a cup of gold, which weighs 154.4 oz. is 19.3 times as heavy as a cup of water (8 oz.). We say that gold has a specific gravity of 19.3

Create a web page that has two input boxes and a button. When the user enters, say, 'honey' into the first input box and the weight of a cup of that honey into the second input box (11.36 oz. in this case) and then presses the button, a message appears saying 'The specific gravity of honey is 1.42'. Test out your web page with 4 or 5 substances from the list above to make sure it is producing correct results. (You might want to verify results using either a calculator or a spreadsheet).

Include an appropriate <title> tag and an appropriate <h1> tag on the page. The two input boxes should each be placed on their own line with appropriate explanatory text. The button should appear below them (with its own appropriate button text) and the results message should appear below the button. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY