Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Scope: Arrays and Loops Sales collection We'll be collecting the names of up to 4 sales people. For each person, we'll collect how many of

Scope: Arrays and Loops
Sales collection
We'll be collecting the names of up to 4 sales people.
For each person, we'll collect how many of 3 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? 4
Name of sales person 1: Bob
Name of sales person 2: Ann
Name of sales person 3: Kat
Name of sales person 4: Tim
How many printers sold by Bob? 2
How much paper sold by Bob? 5
How much ink sold by Bob? 12
... same for other 3 sales people
image text in transcribed

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

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

e. What do you know about your ethnic background?

Answered: 1 week ago

Question

b. Why were these values considered important?

Answered: 1 week ago