Still Thinking Of Assignment Help & Grades ? Book Your Assignment At The Lowest Price Now & Secure Higher Grades! CALL US +91-9872003804

HTML Assignment Help Online

assignment

Assignment

achievement

Achievement

hire-experts

Hire Experts

testimonials

Reviews

free-services

Free Services

grades-delivered

Grades

offers

Offers

order-now

Order Now

Please follow the instructions carefully and complete all of the steps.  An HTML file with the name midterm1.html already exists in the Midterm1_Part2 folder you downloaded. It contains all the tags you would need to complete this exam. The document looks as follows CPSC 1045 College Midterm I Programming In the Midterm1_Part2 folder, create a new JavaScript file named midterm1.js  Inside midte .....

Our Achievements

50,000+

Orders Delivered

4.9/5.0

Star Rating

4000+

PhD Experts

24 x 7

Query Resolution

100 +

Subjects Catered

Our Experts

Reviews

Free Assignment Services

Title Pages - 100 Words

$05.00 free

Downloading Free Guide

$20.00 free

Upload Completed Tasks

$20.00 free

Genuine Content Report

$20.00 free

Consultation By Experts

$06.00 free

Unrestricted Revisions

$10.00 free

Grammar Check for Task

$25.00 free

Plagiarism Inspections

$25.00 free

Book Now and get Free Services Upto $0.00

Offers

BULK ORDER OFFER

100 %
off
Book any 6 Assignments within 7 days get 7th assignment FREE
* Conditions and restrictions apply.

SIMILAR ORDER OFFER

100 %
off
Book 4 Similar Assignments within 3 days get 1 more copy 100% FREE
* Conditions and restrictions apply.

UPTO

30 %
off
Book 3 assignments within 72 hours & get 30% OFF
* Conditions and restrictions apply.

UPTO

50 %
off
Book 2 Assignment within 48 hours, get 50% OFF on assignment
* Conditions and restrictions apply.

How Value Assignment Help Works.

Icon

1. PLACE YOUR ORDER

Whenever you fill out their order form, please read it carefully and then fill it out.

Icon

2. MAKE PAYMENT

Choose our secure payment method to pay for your order and collect your order from us with security.

Icon

3. GET YOUR DOCUMENT

Our writers write you plagiarism-free assignments and provide them to you before the deadline.

Get Your Assignment

In order to use this service, you have to complete this process

  • Basic Details
  • Process
  • Upload Files

Setup your Account

Enter Your Basic Details
Please Enter Name
Please Enter Email
Please Enter Phone Number

Select Other Deatils

Please Select Refrencing style
Please Select Subject
Please Select Deadline

Upload Files

Please Upload only PDF,JPG,PNG And DOC Files..
Please Select File

Order Now

Value Assignment Help

HTML Assignment Help Online

Please follow the instructions carefully and complete all of the steps.

  1.  An HTML file with the name midterm1.html already exists in the Midterm1_Part2 folder you downloaded. It contains all the tags you would need to complete this exam. The document looks as follows

CPSC 1045 College Midterm I Programming

Midterm programming assignment

  1. In the Midterm1_Part2 folder, create a new JavaScript file named midterm1.js
  2.  Inside midterm1.js, write the JavaScript to complete the following tasks.

A. [10 marks]

  • a) Create a global variable called lotto that is initialized to 0.
  • b) When the Generate Number button is pressed, a function generate lotto() should generate a random 2-digit number and store it in the global variable lotto.
  • c) When the Check My Numbers button is pressed, a function compare numbers() should run to see how closely the number entered by the user matches the randomly generated lottery number. The user is a winner in the following three scenarios:
    • If the user input matches the lotto number in the exact order, the award is $10,000.
    • If both digits in the user input match both digits in the lottery number, but out of order, the award is $3,000.
    • If one digit in the user input matches a digit in the lottery number, the award is $1,000.
  • d) If the number doesn’t match the lottery number at all, there is no award for the user.
  • e) Test that your JavaScript executes correctly. Here are some sample runs:

 

B. [10 marks]


Write a JavaScript function computeAndInterpretBMI() that takes as input the height and weight of a person and displays a friendly message stating his/her BMI and as to whether the person is “Under-weight”, “Normal”, “Overweight”, or “Obese”.

  • a) The user enters his/her weight and height in the provided boxes. The weight should be entered in lbs and converted into kg by multiplying with 0.45359237. Similarly, the height is entered in inches and converted into meters by multiplying with 0.0254.
  • b) The formula for calculating the BMI is:
  • 𝑤𝑤𝑤𝑤𝑤𝑤𝑤𝑤ℎ𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡 𝑡𝑡𝑡𝑡𝑡 𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡 / ℎ𝑒 𝑒 ℎ𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡 𝑡𝑡𝑡 𝑡𝑡𝑡𝑡2
  • c) The rules for categorizing a person as “Underweight”, “Normal”, “Overweight”, or “Obese” are as follows:
    •  if the BMI is less than 18.5, the person is “Underweight”
    •  if the BMI is greater than or equal to 18.5 but less than 25, the person is “Normal”
    •  if the BMI is greater than or equal to 25 but less than 30, the person is “Overweight”
    •  if the BMI is greater than or equal to 30, the person is “Obese”
  • d) The BMI should be displayed with 2 digits of precision after the decimal point. For
  • For example, if the calculated BMI is 34.31424464, it should display as 34.31.

Some sample runs of the application are shown below:

  1. 1
  2. 2
Comments

No Comments

Add A Comment

X
💬 Chat Now for Instant Support!
Assignment trouble? We Are here 24/7. Chat today and save 50%. We offer Original assignments, Essays, and Reports with zero plagiarism and at affordable prices.