Intro to internet applications com-340-dl01 programming exercise 5

Programming exercise 5

 

10.8 Write JavaScript statements to accomplish each of the following tasks:

a) Display the value of the seventh element of array f.

b) Initialize each of the five elements of one-dimensional array g to 8.

c) Total the elements of array c, which contains 100 numeric elements.

d) Copy 11-element array a into the first portion of array b, which contains 34 elements.

e) Determine and print the smallest and largest values contained in 99-element floating point

array w.

 

10.10 Use a one-dimensional array to solve the following problem: A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in a week receives $200 plus 9 percent of $5000, or a total of $650. Write a script (using an array of counters) that obtains the gross sales for each employee through an HTML5 form and determines how many of the salespeople earned salaries in each of the following ranges (assume that each salesperson’s salary is truncated to an integer amount):

a) $200–299

b) $300–399

c) $400–499

d) $500–599

e) $600–699

f) $700–799

g) $800–899

h) $900–999

i) $1000 and over

 

11.13 Write a script that inputs several lines of text and a search character and uses String method

indexOf to determine the number of occurrences of the character in the text.

 

11.14 Write a script based on the program in Exercise 11.13 that inputs several lines of text and

uses String method indexOf to determine the total number of occurrences of each letter of the

alphabet in the text. Uppercase and lowercase letters should be counted together. Store the totals for

each letter in an array, and print the values in tabular format in an HTML5 textarea after the totals

have been determined.

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Australia Assessments
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Accounting & Finance
good work
Customer 452441, April 12th, 2022
MGMT 221 Introduction to Management Information System
Thank you!
Customer 457731, February 2nd, 2022
Nursing
Excellent!!!
Customer 453939, June 27th, 2020
Healthcare & Medical
Good work!
Customer 463469, October 17th, 2022
Business and administrative studies
The grade was 100%- Oh man I will be back again. Thank you.
Customer 463293, April 27th, 2023
Philosophy
Thank you for helping me with such a hard and sad topic. I found it very hard to write and be partial and fair state of mind. In the paper you pointed out points that I had missed. Thank you again!
Customer 463465, January 9th, 2023
Marketing
Great quality work
Customer 462481, February 17th, 2022
Business
Good job
Customer 463245, February 6th, 2023
Finance/Acc related
Great job!
Customer 460073, August 14th, 2022
Education
GOOD WORK
Customer 463813, April 19th, 2023
Psychology
Good job.
Customer 462783, March 31st, 2022
Business Studies
Excellent as always!
Customer 454647, June 26th, 2020
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat