Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use our HTML template to create a file named as your name (for example if your name is john the file name would be john.html).
Use our HTML template to create a file named as your name (for example if your name is john the file name would be "john.html"). Make sure to update the meta data (title, author, description...) accordingly. This HTML file should contain an h1 heading element that includes your full name and student number. Create an empty element with an id of your name. This element should be used to display your output from JavaScript. Create a JavaScript file with your studentid.js and link it to your HTML file created above. Perform following exercise in your JavaScript file. 1) Ask user how many numbers you have and add them one by one into an array from prompt() input and add them to the array. 2) Write a function to find the average of that array and return the value 3) Write a function to find the highest number in the array and return it. 4) Write a function to find the lowest number in the array and return it. 5) Write a function to get the avg., highest and lowest as an argument and demo them on your empty element. ** After done with your function you should call them in order and at the end call the function called printInfo(avg, highest, lowest) to print those information
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