it230,turki

This
work is important to me. Solve it correctly, without mistakes, without

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

plagiarism. Follow the instructions. There is no chance to repeat it.

Therefore, you must do a complete and correct work 100%.If you are sure you can do it, accept it put the solve in the cover College of Computing and Informatics
Assignment 2
Deadline: Day 26/11/2023 @ 23:59
[Total Mark for this Assignment is 8]
Student Details:
Name: ###
ID: ###
CRN: ###
Instructions:
• You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on
Blackboard via the allocated folder. These files must not be in compressed format.
• It is your responsibility to check and make sure that you have uploaded both the correct files.
• Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between
words, hide characters, use different character sets, convert text into image or languages other than English
or any kind of manipulation).
• Email submission will not be accepted.
• You are advised to make your work clear and well-presented. This includes filling your information on the
cover page.
• You must use this template, failing which will result in zero mark.
• You MUST show all your work, and text must not be converted into an image, unless specified otherwise by
the question.
• Late submission will result in ZERO mark.
• The work should be your own, copying from students or other resources will result in ZERO mark.
• Use Times New Roman font for all your answers.
Question One
Pg. 01
Learning
Outcome(s):
Develop dynamic
web pages using
JavaScript.
Question One
2 Marks
Write your own script using a programmer-defined function called minimum to
determine and return the smallest of three floating-point values. The three values
(floating-point) should be input (prompt dialogs) by the user. Note that the initial
value appears on prompt dialogs should be 0.
Just notice that: (it is required to include the following in your document)
1- You must copy and paste your script as your answer to this question. DON’T
take screenshots of your script. It must be an editable script.
2- Take a screenshot of all output pages.
Question Two
Pg. 02
Learning
Outcome(s):
Develop dynamic
web pages using
JavaScript.
2 Marks
Question Two
Write JavaScript statements to create an array named Array for summing 10 values. The 10element integer array must first be declared, allocated and initialized. You should use for and
for…in repetition statements for the summation of the elements of the array. You should also
include in the html page the following:
1. The page title “Summation”
2. Your name
3. your ID.
Just notice that: (it is required to include the following in your document)
1- You must copy and paste your script as your answer to this question. DON’T take
screenshots of your script. It must be an editable script.
2- Take a screenshot of all output pages.
Question Three
Pg. 03
Learning
Outcome(s):
Develop dynamic
web pages using
JavaScript.
2 Marks
Question Three
Develop a JavaScript program that calculates the Body Mass Index (BMI) using user inputs
for weight and height. Then, displays the result on an HTML page. The program should
categorize the BMI result as underweight, normal weight, overweight, or obesity.
Requirements:
• User Input:
o Use JavaScript’s prompt dialog or element to obtain the user’s
weight in kilograms and height in meters.
o Validate the input to ensure that only positive numbers are accepted.
• BMI Calculation:
o Calculate the BMI using the formula: BMI = weight (kg) / (height (m))^2.
o Ensure the calculation is accurate and handles different input formats
correctly.

BMI Categorization:
o Based on the calculated BMI, categorize the result as:
▪ Underweight (BMI < 18.5) ▪ Normal weight (BMI 18.5 – 24.9) ▪ Overweight (BMI 25 – 29.9) ▪ Obesity (BMI ≥ 30) • Result Display: o Display the calculated BMI and its category on the HTML page. o Ensure the results are presented in a clear and user-friendly format. Just notice that: (it is required to include the following in your document) 1. You must copy and paste your script as your answer to this question. DON’T take screenshots of your script. It must be an editable script. 2. Take a screenshot of the output page. Question Four Pg. 04 Learning Outcome(s): 2 Marks Question Four Enhance the previously developed JavaScript BMI calculator by adding dynamic styling to the Create web pages using HTML5 and CSS3 result display using CSS3. The goal is to visually represent the BMI category (Obesity, Overweight, Normal weight, Underweight) by changing the color of the result text based on the calculated BMI. Requirements: o Define CSS classes for each BMI category: Obesity (red), Overweight (orange), Normal weight (green), and Underweight (blue). o Each class should define a different color property corresponding to the category color. o Display the BMI value and its category in an HTML element. o The color of the text in this element should change according to the BMI category. Just notice that: (it is required to include the following in your document) 1. You must copy and paste your script as your answer to this question. DON’T take screenshots of your script. It must be an editable script. 2. Take a screenshot of all output pages.

Still stressed with your coursework?
Get quality coursework help from an expert!