Our Services

Get 15% Discount on your First Order

[rank_math_breadcrumb]

IT 361 ASS 1

Description

SEE

College of Computing and Informatics

Assignment 2
Deadline: Tursday 31/07/2024 @ 23:59
[Total Mark for this Assignment is 15]
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):
CLO3 Develop
dynamic web
pages using
JavaScript.

Question One

5 Marks

Write a JavaScript function that does the following:
1. Ask the user to enter their weight in kilograms using prompt().
2. Ask the user to enter their height in meters using prompt().
3. Calculate the BMI using this formula:
BMI = weight / (height * height)
4. Displays a message inside a on the page that tells the
user whether they are:
o Underweight (BMI 16 to less than 18.5)
o Normal weight (BMI 18.5 to less than 25)
o Overweight (BMI 25 to less than 30)
o Obese (BMI 30 and above)
o Severely Underweight (BMI less than 16)
5. If the BMI is less than 16 or more than 30, show a popup alert()
warning that says the user is in the danger zone.
Your function must use:
• prompt() to get input
• if…else statements for decision making
• DOM methods like getElementById() to show the result

Question Two

Pg. 02
Learning
Outcome(s):
CLO2 Create web
pages using
HTML5 and
CSS3.

Question Two

2.5 Marks

From the previous question, style the that displays the BMI message
using CSS.
Inside the section of your HTML, add a block, and write a CSS rule
using the ID selector to apply the following styles:



Font family: Arial
Font size: 18px
Text color: blue
Font style: italic

Remember to use:

ID selector syntax
Embedded (or internal) style sheet

Question Three

Pg. 03
Learning
Outcome(s):

Question Three

2.5 Marks

Use JavaScript to:

CLO3 Develop

– Change the text of the element with ID message to “Welcome to KSA”.

dynamic web

– Change the src attribute of the image with ID logo to ksa.png.

pages using
JavaScript.

Welcome to SEU

Question Four

Pg. 04
Learning
Outcome(s):

Question Four

5 Marks

Use JavaScript to:

CLO3 Develop

– Add a click event listener to the button with ID btn.

dynamic web

– When clicked, it should:

pages using

– Change the style color of the paragraph with ID description to red.

JavaScript.

Event Listener

This is the best.
Click

Purchase answer to see full
attachment

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

MGT – 325 (Management of Technology)

Description Below are the conditions for completing the assignment. Additionally, there are further requirements inside the file that must be followed: -Make sure to avoid plagiarism as much as possible . -Use font Times New Roman , 12 font sizes. -Use 1.5 line spacing with adjust to all paragraphs (

212 ass 12

Description see ASSIGNMENT COVER SHEET Course name: Concepts of Health Education & Health Promotion Course number: PHC 212 CRN: Paper Assignment Assignment title or task: (You can write a question) Choose a health issue in KSA and explore the determinants causing that issue and justify your understanding with evidence from

discussion ecn500

Description Discuss one of the following topics. on Global Trade 1. Balancing National Interests with Global Trade Rules Discuss how governments design industrial policies that address domestic economic goals (e.g., supply chain resilience or climate change) while adhering to WTO rules. Discuss examples where such balance has been achieved or

RES500 Discussion

Description Amazon’s Kindle (its electronic book, magazine, and newspaper reader) has been far more successful than its SONY competitor. However, the original Kindle had some physical problems—button placement and page-turn speed among them. Correcting these problems resulted in the Kindle2, released in 2009 to glowing reviews. What observation research might

Buiness Presentation

Description Presentation instructions 1- Students select a topic to present in class using PowerPoint. 2- Students must submit their presentations in advance. 3- The presentation duration is 5 minutes. presentation software like MS Oral presentation rubric 0-6 points Criteria Excellent Good Fair Delivery • Holds attention of entire audience with

New Discussion, ECN500

Description Discuss one of the following topics. on Global Trade Balancing National Interests with Global Trade Rules Discuss how governments design industrial policies that address domestic economic goals (e.g., supply chain resilience or climate change) while adhering to WTO rules. Discuss examples where such balance has been achieved or failed.

ECN500 new Discussion

Description Discuss one of the following topics. on Global Trade Balancing National Interests with Global Trade Rules Discuss how governments design industrial policies that address domestic economic goals (e.g., supply chain resilience or climate change) while adhering to WTO rules. Discuss examples where such balance has been achieved or failed.

Fin500 Discussion

Description Break-even Analysis This week we learned more about break-even analysis and its influence on decision-making. Assume you owned a coffee shop and were thinking of expanding and adding a second location within the city. Discuss how would the use of break-even or other analysis to help you determine whether

Trade barriers Comparative Analysis of Trade Barriers

Description Trade barriers Comparative Analysis of Trade Barriers: • Select two countries, one developed and one developing, and compare their approaches to trade barriers. • Analyze the types of barriers implemented, their economic justifications, and their impacts on domestic industries and international trade. • Conclude by proposing policy recommendations to

CT-Module 07: Business Intelligence, Data Science, and Data Analytics

Description CT-Module 07: Business Intelligence, Data Science, and Data Analytics Business Intelligence (BI) and Data Analytics are two of the most important fields in modern business. They allow organizations to make data-driven decisions, optimize their operations, and gain a competitive advantage. In this lecture, we will cover the basics of

Public Management (MGT324)

Description Assignment 2 Public Management (MGT324) Instructions: Please Read them carefully • • This assignment is an individual assignment. The Assignment must be submitted on BB only in WORD format via allocated folder. • Assignments submitted through email will not be accepted. • Students are advised to make their work

Strategic Management (MGT 401)

Description Assignment 2 Strategic Management (MGT 401) General Instructions – PLEASE READ THEM CAREFULLY • • • • • • • • The Assignment must be submitted on Blackboard (WORD format only) via the allocated folder. Assignments submitted through email will not be accepted. Students are advised to make their

Module 07: Introduction

Description Module 07: Introduction In this module, you will learn about processes, facilities planning, and work systems. Regarding processes, you will focus on process selection, process strategies, and process layouts. Regarding facilities, you will focus on facilities layouts and product layouts. Finally, regarding work systems, the focus will be on

discussion RES500

Description Amazon’s Kindle (its electronic book, magazine, and newspaper reader) has been far more successful than its SONY competitor. However, the original Kindle had some physical problems-button placement and page-turn speed among them. Correcting these problems resulted in the Kindle2, released in 2009 to glowing reviews. What observation research might

Power bi simple report someone knows how to use it please

Description Greetings I need someone that has background knowledge about power bi i would like a powerbi report as simple as possible noting complicated so i can adjust it when its necessary i will attach a report with type of assessmnets and scores, i need a general report that includes

212 solve new

Description Instructions for submission: Make sure to fill out all the relevant information on the coversheet. Your response should be a minimum of 250 words but should not exceed 500 words (Excluding references). Support your answer with examples. Font size should be 12 Font type should be Times New Roman

181 solve

Description Instructions for submission: Assignment must be submitted with properly filled cover sheet (Name, ID, CRN, Submission date) in word document, Pdf is not accepted. Word count between 500 to 600 Text size 12-Times New Roman with 1.5-line spacing. Heading should be Bold The text color should be Black Do

311 ass 5

Description See College of Health Sciences Department of Public Health Assignment Cover Sheet Course name: GLOBAL HEALTH Course number: PHC 311 CRN ***** Please answer the following questions in an essay format (15 marks) Assignment title or task: • Compare disease burden in low-income vs. high-income countries. (5 marks) •