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

  Write the c++ programming language that has an sql query

This laboratory provides some experience working with the C++ programming language that has an SQL query and SQL update embedded in it.

  Write a function named sort3

Write a function named "sort3" that takes three floating point arguments, call them "x" , "y" , and "z" , and modifies their values, if necessary, in such a way as to make true the following inequalities: x y z .

  Square root of a number n

USING C++ the square root of a number N can be approximated by repeated calculation using the formula NG=.5(LG+N/LG) where NG stands for next guess and LG stands for last guess

  Write a program that accepts as input a string variable

Write a program that accepts as input a string variable called strFirstName, then another string variable called strLastName, and an integer variable called intAge.

  Write a computer program to prepare a linear support vector

write a computer program to prepare a linear support vector machine svm. prepare a report and deliver the report

  The main program should create an ifstream

For decryption, the main program should create an ifstream for the file to be decrypted. It should use the getline method of the ifstream to read lines from the file, call the encryption / decryption function with the line to be decrypted, and dis..

  Design a system using a class called books

Design a system using a class called Books with suitable members

  Person class that includes fields for last name

Create a Person class that includes fields for last name, first name, and zip code. Include a default constructor that initializes last name, first name, and zip code to "X" if no arguments are supplied. Also include a display function. Write a ma..

  Temperature conversions

Temperature Conversions. The following problems generate temperature- conversion tables. Use following equations that give relationships between temperatures in degrees Fahrenheit(Tf), degree Celsius(Tc), degrees Kelvin(Tk), and degrees Rankin(Tr);

  What does the term polymorphism mean

What does the term polymorphism mean and Use case models use two patterns - "Common Sub Behavior" and "Interrupts as Extensions." Explain these two patterns in your own terms and give an example for each pattern.

  Lab9 c lab 9 c i request this twice but no answer on this

lab 9 c ltbrgti request this twice but no answer on this please could you check this for

  Write a function that collects integers from the user

Write a function that collects integers from the user until a 0 is encountered and returns them in a list in the order they were input (ML only).

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