Question: a C program and flowchart (FLOWGORITHM). The program should ask the user how many customers they want to track. Then, it asks for customer numbers,

a C program and flowchart (FLOWGORITHM). The program should ask the user how many customers they want to track. Then, it asks for customer numbers, and sales by customer. At the end, it prints out the customer number, the customer sales, and then the total sales and average sales.

  1. You must use two different arrays, one for customer number, and one for sales. These are, in effect, parallel arrays.
  2. You must use a "while" loop to gather customer number and sales.
  3. You must use a"for" loop to output the customer number and sales by customer

a C program and flowchart (FLOWGORITHM). The program should ask the user

How many customers do you want to track? Enter the customer number. 1 Enter the sales for the customer 1000 Enter the customer number. 2 Enter the sales for the customer 2000 Enter the customer number. 3 Enter the sales for the customer 3000 Enter the customer number. 4 Enter the sales for the customer 4000 Sales for the Customer Customer Customer Number Sales 1000 2 2000 53 3000 4 4000 Total sales are $10000 Average sales are $2500.00 4th return value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!