Question
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:
function calculate() {
}
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started