171k views
2 votes
Suppose that you want to write a program that inputs customer data including name, zipCode, balance, and regionNum. At the end of the program, a summary of the number of customers in each of 12 sales regions who owe more than $1000 each is displayed. The most likely statement during the main processing loop would be ___________.

a. customerCount[balance] = customerCount[balance] + 1

b. customerCount[regionNum] = customerCount[regionNum] +1

c. customerCount[regionNum] = regionNum - 1

d. customerCount[balance] = balance + customerCount[regionNum]

User Steve Todd
by
5.3k points

1 Answer

3 votes

Answer:

The answer to the given question is option "b".

Explanation:

In this question, we use option b because this option will provide a list of the number of customers in 12 each region owing more than $1,000. and other option is not correct that will be described as:

  • In the option a, It will provide the balance of the customer.
  • In the option c, It will decrease the list of region number.
  • In the option d, It will provide the total balance of the regions.

That's why the answer to this question is option b which is "customerCount[regionNum] = customerCount[regionNum] +1".

User Tom Neyland
by
5.0k points