Computers and Technology

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?

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:00, GGerardi7552
What are procedures that keep a data base current
Answers: 1
image
Computers and Technology, 22.06.2019 17:30, yoyo9661
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
image
Computers and Technology, 23.06.2019 03:30, 890777
In vista and windows 7, the appearance and personalization option allows you to change the
Answers: 1
image
Computers and Technology, 23.06.2019 05:30, savyblue1724707
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
Do you know the correct 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, 20.09.2020 18:01
Konu
Mathematics, 20.09.2020 18:01