Double-subscripted array to solve the following problem

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

Use a double-subscripted array to solve the following problem. A company has four salespeople (1 to 4) who sell five different products (1 to 5). Each salesperson passes in slips for each different type of product sold. Each slip contains the following:

a) The salesperson number

b) The product number

c) The total dollar value of that product sold that day Thus, each salesperson passes in between 0 and 5 sales slips per day. Assume that the information from all of the slips for last month are available. I need to write a program that reads all this information for last month's sales and summarize the total sales by salesperson by product. All totals should be stored in the two-dimensional array sales. After processing all the information for last month, print the results in tabular format with each of the columns representing a particular salesperson and each of the rows representing a particular product. Cross total each row to get the total sales of each product for last month; cross total each column to get the total sales by salespersonfor last month. Your tabular printout should include these cross totals to the right of the totaled rows and to the bottom of the totaled columns.

Reference no: EM132075110

Questions Cloud

Which projects do you accept and which project do you reject : FIN 2201 : Which projects do you accept and which projects do you reject with a three year cut-off period for recapturing the initial cash outflow?
Calculate the number of outstanding shares : The following information relates to the number of common shares of the Nelly Corporation: 40,000 Authorized shares. Calculate the number of outstanding shares
Prepare a newsletter that identifies and summarises changes : Prepare a page newsletter that identifies and summarises changes / developments and news in the financial reporting environment for the period
Program initializes an array with these numbers : Scenario: A lottery ticket buyer purchases 10 tickets a week and always the same 10 five-digit lucky combinations.
Double-subscripted array to solve the following problem : A company has four salespeople (1 to 4) who sell five different products (1 to 5). Each salesperson passes in slips for each different type of product sold.
Prepare a multiple-step income statement : The effective corporate tax rate is 30 percent. Prepare a multiple-step income statement in good form for the year ended December 31, 2015
Please explain in great detail using fully compileable : However please explain in great detail using fully compile-able C++ source code in the example Linear Search Algorithm and its inefficiency
Calculate the firms cash conversion cycle : Winston Inc. is trying to determine the effect of its inventory turnover ratio and days sales outstanding on its cash conversion cycle.
Standard template library offers a vector data type : Standard Template Library offers a vector data type, which in many ways is superior to standard arrays.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Dynamically allocates an array large enough

Write a program that dynamically allocates an array large enough to hold a number of test score. The size of the array should be input by the user

  Connectivity in undirected graphs

Connectivity in undirected graphs - array of linked list and another class will hold edges

  Database configuration tools wizard

If your designed solution involves the use of a disconnected database, post the changes back to the live database. Be sure to check the database records to make sure the changes have been made. For an added challenge, write program statements, as ..

  How many different copies of the variable c are there

Most round-robin schedulers use a fixed size quantum. Give an argument in favor of and against a small quantum.

  Write a c++ program which will calculate the monthly balance

Write a C++ program which will calculate the monthly balance of a debt. Each month a payment is made on the balance, and interest is added to the balance using a fixed percentage rate.

  Software and system standards

Describe system and software standards that could be used for the description of control constructs in C, C#, or Java.

  Write a program that will read a series of lines

Write a program that will read a series of lines from an input file named hw8in.txt. Design your own input file (Hw8in.txt) and include as many variations.

  Write a cpp program that gets two inputs an integer

Write a C++ program that gets two inputs an integer and a character. Use repetition control structures better known as loops to output an outline of a triangle.

  Define a class for a type called fraction

Define a class for a type called Fraction. This class is used to represent a ratio of two integers. Include mutator functions that allow the user to set the numerator and the denominator.

  Program that implements the bubble sort method

Write a C program that implements the bubble sort method to sort a given list of names in ascending order.

  Design, write, and test a program

Design, write, and test a program that represents some of the aspects of a student

  Write a c++ program to read from a file and sort it

Using this information the program should request a user entered account number and display the corresponding name and account balance.

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