Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

a 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.

image text in transcribed
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

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

=+h. What course of action did you recommend?

Answered: 1 week ago