a. What type of array would you use to store the data and why? b. Write the code to initialize the array. c. Write the code to enter the data

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter18: Deterministic Dynamic Programming
Section: Chapter Questions
Problem 6RP
icon
Related questions
Question

JAVA Based Prgm 

You are the director of sales in a pharmaceutical company, and you oversee 6 salespeople, and each each salesperson has their territory (city) within the
state. The territory is not equal, so salesperson A could have 4 cities, salesperson B could have 10, etc. You need to keep track of the number of sales
within each territory for each salesperson listed below:
Salesperson 1: (Gomez) - has 3 territories with sales of 2000, 1525, 1860
Salesperson 2: (Morticia) - has 5 territories with sales of 1680, 2282, 750, 675, 250
Salesperson 3: (Pugsley) - has 2 territories with sales of 950, 1280
Salesperson 4: (Wednesday) - has 1 territory with sales of 1750
Salesperson 5: (Fester) - has 4 territories with sales of 1964, 600, 1250, 150
Salesperson 6: (Lurch) - has 3 territories with sales of 725, 550, 135
a. What type of array would you use to store the data and why?
b. Write the code to initialize the array.
c. Write the code to enter the data
d. Write the code to print out the sales
Transcribed Image Text:You are the director of sales in a pharmaceutical company, and you oversee 6 salespeople, and each each salesperson has their territory (city) within the state. The territory is not equal, so salesperson A could have 4 cities, salesperson B could have 10, etc. You need to keep track of the number of sales within each territory for each salesperson listed below: Salesperson 1: (Gomez) - has 3 territories with sales of 2000, 1525, 1860 Salesperson 2: (Morticia) - has 5 territories with sales of 1680, 2282, 750, 675, 250 Salesperson 3: (Pugsley) - has 2 territories with sales of 950, 1280 Salesperson 4: (Wednesday) - has 1 territory with sales of 1750 Salesperson 5: (Fester) - has 4 territories with sales of 1964, 600, 1250, 150 Salesperson 6: (Lurch) - has 3 territories with sales of 725, 550, 135 a. What type of array would you use to store the data and why? b. Write the code to initialize the array. c. Write the code to enter the data d. Write the code to print out the sales
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage