Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

lab question as fllows Part 1 - Create a folder called Lab2 in your repository. All source code for this lab should go into the

lab question as fllows

Part 1 - Create a folder called Lab2 in your repository. All source code for this lab should go into the Lab2 folder.

Part 2 - Create an html document called calculator.html. Use the starting code:

x =

y = br>

(y2) * (3 -x) =

x % 2 =

y / x =

html>

Add the following to calculator.html:

Call the calculate() function when a user clicks on the button with value="Calculate".

Calculate the 3 formulas and output their values in elements with id output1, output2, and output3.

Hints: for the first formula 1) make sure to include parenthesis to modify order of precedence, use the Math.pow() method to calculate the first part of the formula.

Part 3 - Create an html document called random.html. Populate an array with 100 random values and then output the values to to the html document. Do not use alerts! You must populate the values into an array and then display the values on the page itself. This will require 2 loops.

Part 4

Create an html document called today.html.

Add a button with value "Display Date".

Populate 3 elements on the page with the current date. Each date should be formatted differently. For example: 2018-03-25 vs. 03/25/2018

for step one l will create the floder LAB 2 and push it in visaul studo code

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

International Baccalaureate Computer Science HL And SL Option A Databases Part I Basic Concepts

Authors: H Sarah Shakibi PhD

1st Edition

1542457084, 978-1542457088

More Books

Students also viewed these Databases questions

Question

Prepare a short profile of Henry words worth Longfellow?

Answered: 1 week ago

Question

What is RAM as far as telecommunication is concerned?

Answered: 1 week ago

Question

Question 1: What is reproductive system? Question 2: What is Semen?

Answered: 1 week ago

Question

Describe the sources of long term financing.

Answered: 1 week ago