Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a web page that displays the default information (example shown). (1 point each, total 3 points) The initial page and related outputs should look

Create a web page that displays the default information (example shown). (1 point each, total 3 points)

The initial page and related outputs should look like the examples shown below. (4 points output format)

Create your page using s Richard Ricardo's Kung Fu Panda Po Magic Functions as the page title. Save the page as index.htm. Remember to document the html file with html comments. (1 point each, total 3 points)

Allow the user to enter two magic numbers.

Make sure the numbers are positive (3 points)

The JavaScript code should include four functions as described below (4 points each, total 16 points)

The main function RichardMath() describe the selections, prompts user for two numbers (save as variables x and y), and call the other three functions

Function RichardExp(x,y) calculate the value xy, and return the result

Function RichardArea(x,y) calculate the area of a rectangle (area = base * height), and return the result

Function RichardDistance(x,y) calculate the distance between two points (x,y) and (0,0), and return the result. You may need the distance formula: image text in transcribed

Initial Page:

image text in transcribed

Input 1

image text in transcribed

OUTPUT IF POSITIVE INT IS NOT ENTERED

image text in transcribed

CORRECTED INPUT

image text in transcribed

image text in transcribed

WEBPAGE OUTPUT:

image text in transcribed

d =-f(x2+(y2-y1

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

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

2. Do you find change a. invigorating? b. stressful? _______

Answered: 1 week ago

Question

How was their resistance overcome?

Answered: 1 week ago