Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVASCRIPT ASSIGNMENT Purpose of the assignment To apply simple JavaScript concepts to create a Fahrenheit to Celsius conversion program. Whats required of you. Having looked

JAVASCRIPT ASSIGNMENT

Purpose of the assignment

To apply simple JavaScript concepts to create a Fahrenheit to Celsius conversion program.

Whats required of you.

Having looked at some basic examples of JavaScript on http://www.w3schools.com and at the simple math with forms and validation example in detail which appears below this assignment. I would like you to now apply those concepts to create a simple page that lets users type in some temperature value in the Fahrenheit scale and when the user clicks a Show results button, to show the temperature in Celsius scale. For example, if the user types in 32, your results should show 0 degree Celsius.

Functionality

At the least, your program should allow for the following

User Input: One text field where the user will type in the temperature in Fahrenheit

Input Validation: When the Show results button is clicked, your program should check to see if the user has left the text field empty and also if what the user typed is a number and not anything else.

If there are problems (as in II. above) then your program should show appropriate error messages

Display results: If there are no errors and user input is valid, then your program should show the results to the user.

Note: The temperature conversion function is C = (F-32)*(5/9)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

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

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

What does this public want on this issue?

Answered: 1 week ago

Question

2. How can competencies be used in employee development?

Answered: 1 week ago