Purchase Solution

Multidimensional Arrays and Vectors

Not what you're looking for?

Ask Custom Question

The prices for ten automobiles are as follows:
0 $17,450
1 $19,995
2 $26,500
3 $25,999
4 $10,400
5 $18,885
6 $11,700
7 $14,440
8 $17,900
9 $19,550

Given sales table:
Salesperson
Model: 1 2 3 4 5 6 7 8: Totals

1 0 0 2 0 5 6 3 0: 16
2 5 1 9 0 0 2 3 2: 22
3 0 0 0 1 0 0 0 0: 1
4 1 1 1 0 2 2 2 1: 10
5 5 3 2 0 0 2 5 5: 22
6 2 2 1 0 1 1 0 0: 7
7 3 2 5 0 1 2 0 4: 17
8 3 0 7 1 3 5 2 4: 25
9 0 2 6 1 0 5 2 1: 17
10 4 0 2 0 3 2 1 0: 12

Totals: 23 11 35 3 15 27 16 17

Wrtie a program to read this list of prices and the sales table and calculate the total dollar sales for each salesperson and the total dollar sales for all salespersons

**NOTE: I need the answer in C++ Code.

Purchase this Solution

Solution Summary

Multidimensional Arrays and Vectors are demonstrated.

Solution provided by:
Education
  • BSc (Hons), University of Colombo - Sri Lanka
  • MEngSc, University of Melbourne
  • Certificate IV in Training & Assessment , Australian Business Council
Recent Feedback
  • "Thank you!"
  • "Thank you."
  • "Thanks a lot for you help and support"
  • "Sorry about the late payment but the assignment was sufficient and appreciated. Good work"
  • "Great description! Thank you for your quick response."
Purchase this Solution


Free BrainMass Quizzes
Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Basic Networking Questions

This quiz consists of some basic networking questions.