Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.

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

2. Write the code for getting the data and displaying the second dialog box above.

3. Write the code for getting the data and displaying the third dialog box above.

Javascript given:

var region1 = [1540, 1130, 1580, 1105]; var region2 = [2010, 1168, 2305, 4102]; var region3 = [2450, 1847, 2710, 2391]; var region4 = [1845, 1491, 1284, 1575]; var region5 = [2120, 1767, 1599, 3888];

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

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions

Question

Question What is the advantage of a voluntary DBO plan?

Answered: 1 week ago

Question

Question How is life insurance used in a DBO plan?

Answered: 1 week ago