# computer information

posted by .

Create a flowchart for a program that will sort the top 1,000 customers by their annual purchase amount and print the names and addresses of the top 100 customers, or fewer if there aren’t 100 customers.

• computer information -

Here's a possible pseudocode:

1. Input customer data (from disk or otherwise) to an array of objects or structures, each containing:
- name
- purchase
The size of the array is n, and the array name is Clients.

2. Sort the array in decreasing order of purchase amount. Details can be expanded once the data structure and sort algorithm are determined.

3. Print/output the names, addresses, and purchase amounts from each client. The upper limit 100 will be replaced by n if n<100.

Build on the above and suggest a more detailed pseudocode. We'll be happy to critique your work.

## Similar Questions

1. ### statistics

A travel agency offers 4 different vacation packages to Europe. Their net profit for package 1 is \$500, for package 2 it is \$750, for package 3 it is \$900, and for package 4 it is \$1,500. From past experience they know that 20% of …
2. ### Finance

Gap kids has several options: 1 run a loyalty program in which customers who spend \$500 dollars in a year gets\$50 off on a coupon for their next purchase of \$100, the total cost is \$25,000 to manage and implement this program. 2 a …
3. ### statistics

A study of checkout lines at the Safeway revealed that between 4-7pm on weekdays there is an average of 4 customers waiting in line. What is the probability that you visit that Safeway during this time period and... 1-no customers …
4. ### statistic

A survey was made of 100 customers in a department store. 70 of the customers indicated they visited the store because of a newspaper advertisement. The remainder had not seen the ad. A total of 40 customers made purchases; of these …

Assume that WilyMarketer is running an email campaign to acquire new customers. It is considering two options: Option A would use a high quality rental list of 100,000 email addresses. Direct costs under this option would be the rental …
6. ### statistics

. In his management information systems textbook, Professor David Kroenke raises an interesting point: “If 98% of our market has Internet access, do we have a responsibility to provide non-Internet materials to that other 2%?
7. ### Statistics

In his management information systems textbook,Professor David Kroenke raises and interesting point:"If 98% of our market has Internet access,do we have a responsibility to provide non-Internet materials to that other 2%?
8. ### Statistics

The records of a computer retail store show that out of the 100 customers who purchased a desktop computer last month, 69 also purchased a service plan that extends the warranty for an extra year. Out of the 25 customers who purchased …