Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C Programming Sales collection We'll be collecting the names of up to 4 sales people. For each person, we'll collect how many of 3
In C Programming
Sales collection
We'll be collecting the names of up to sales people.
For each person, we'll collect how many of different products they sold.
Determine the total $ amount sold by each person and the overall $ amount.
Application flow.
Prompt for the number of sales people.
Collect the names of them into an array.
For each person, prompt for each product see below and collect how many of those
were sold by that sales person. See below matrix for how to store it
Calculate totals see table below and print that out.
Example:
How many sales people?
Name of sales person : Bob
Name of sales person : Ann
Name of sales person : Kat
Name of sales person : Tim
How many printers sold by Bob?
How much paper sold by Bob?
How much ink sold by Bob?
same for other sales people
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started