Program to produce a monthly sales report

Assignment Help C/C++ Programming
Reference no: EM13937846

Suppose that a certain automobile dealership sells ten different models of automobiles and employees eight salespersons. A record of sales for each month can be represented by a table in which each row contains the number of sales of each model by a given salesperson and each column contains the number of sales by each salesperson of a given model. For example, suppose that the sales table for a certain month is as follows:

0 0 2 0 5 6 3 0
5 1 9 0 0 2 3 2
0 0 0 1 0 0 0 0
1 1 1 0 2 2 2 1
5 3 2 0 0 2 5 5
2 2 1 0 1 1 0 0
3 2 5 0 1 2 0 4
3 0 7 1 3 5 2 4
0 2 6 1 0 5 2 1
4 0 2 0 3 2 1 0

Write a program to produce a monthly sales report, displaying the monthly sales table in the form:

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 18 17

As indicated, the report should also display the total number of automobiles sold by each salesperson and the total number of each model sold by all salespersons.

Reference no: EM13937846

Questions Cloud

Which method portray more accurately actual use of the asset : Compute the depreciation expense for 2009 and 2010, first using the straight-line method, then the activity method. Which method portrays more accurately the actual use of this asset? Explain your answer.
Identify the roles generally held by top-level managers : Identify the roles generally held by top-level (strategic planning), middle-level (tactical planning), and frontline-level (operational planning) managers, and the roles held by managers that may have broad responsibilities in more than one level ..
Requirements for remote administration : Discuss the requirements for remote administration, resource management and SLA management. It may be useful to consider Morad and Dalbhanjan's operational checklists for ACL Realty's CRM and Email services. This section should be no more than two..
Describe characteristics of effective business messages : Describe characteristics of effective business messages - what are the five most common techniques for developing paragraphs?
Program to produce a monthly sales report : As indicated, the report should also display the total number of automobiles sold by each salesperson and the total number of each model sold by all salespersons.
What is the book value of the equipment at the year end : What is the book value of the equipment at the end of 2008 under each method? Compute the depreciation expense for the years 2008 through 2010, using the straight-line method.
Pathophysiology and epidemiology : Write a 2- to 3-page paper that addresses the following: Explain the disorder you selected, including its pathophysiology and epidemiology. Explain a protocol for the diagnosis, management, and follow-up care of this disorder.
Decide whether or not each equation has circle as its graph : Decide whether or not each equation has a circle as its graph. If it does, give the center and the radius. If it does not, describe the graph.
Give a pseudo code for the script logic. : Update the given script for above requirements, and also give a pseudo code for the script logic.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd