subject

I was wondering if i could get the answers and code for these questions

1. Given the following code, write statements that will assign the values requested:

var numbers = new Array(2, 3, 5, 7, 11);
Create a variable named adding that uses elements in the numbers array such that adding = 19.
Create a variable named divide that uses elements in the numbers array such that divide = 9.
2. Write JavaScript code to create an array named usernames[] that has 100 elements. Each element contains usernames for a school that assigns usernames to students. Each username concatenates the string "college" with a number. The numbers should start at 300 and end at 399.
3. Given an array named items[] that holds the names of various items sold in a jewelry business. List three arrays that, as parallel arrays, will hold appropriate data to correspond with each item in items[] .
23 Given an array named snow[] that contains yearly snowfall amounts in inches in a certain area over a period of 10 years from 2000 to 2009. Use a loop to display these amounts. The output should be on 10 lines, each line of the following form:

Snowfall for the year is YY inches
where is the year and YY is the amount in inches.
Given: var snow = new Array(6, 8, 8, 12, 21, 15, 7, 8, 10, 15);
24 Add code to Exercise 23 to find and display the years with the highest and lowest snowfall amounts.
26 Add code to Exercise 25 to find the number of years that snowfall was above the average.
28 Add code to the addRings() function of Example 8.14 in the chapter to check if a value Jackie wants to add to her inventory is already part of the inventory.
30 Given the following JavaScript code, what are the values of the eight elements in the numbers[] array?

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 20:00, jc624826
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
image
Computers and Technology, 22.06.2019 20:00, jayjay5246
What is the term for water wave that is created by an underwater earthquake
Answers: 1
image
Computers and Technology, 23.06.2019 04:00, ittmanny6138
Laire writes a letter to her grandmother, in which she describes an amusement park she visited last week. she adds pictures of that place in her letter. which feature of a word processing program will claire to remove unwanted parts of the pictures?
Answers: 3
image
Computers and Technology, 23.06.2019 12:00, xojade
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
You know the right answer?
I was wondering if i could get the answers and code for these questions

1. Given the fol...

Questions in other subjects:

Konu
Mathematics, 28.10.2020 21:10