Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this exercise, youll start with five arrays that represent sales regions, and each array contains four values that represent the quarterly sales for the

In this exercise, youll start with five arrays that represent sales regions, and each array contains four values that represent the quarterly sales for the region. Then, youll summarize the data in these arrays in three successive alert dialog boxes. The first one displays sales by quarter: The second one displays sales by region: The third one displays total sales for all four quarters and all five regions:

2. In the HTML file, note that the script element refers to the JavaScript file. In the JavaScript file, note that five arrays are declared with four values in each. Each of these arrays represents one sales region, and each of the values in an array represents one sales quarter. For instance, the sales for the third quarter in region 3 were 2710.

3. Write the code for summing the quarterly sales for each the five regions and displaying the first dialog box above.

4. Write the code for getting the data and displaying the second dialog box above. 5. Write the code for getting the data and displaying the third dialog box above.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

Have issues been prioritized?

Answered: 1 week ago

Question

d. How will lack of trust be handled?

Answered: 1 week ago

Question

Are the rules readily available?

Answered: 1 week ago