Two-dimensional array of double to hold the sales

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

Suppose you have a two-dimensional array of double to hold the sales amounts for all your salespeople three years. Assume you employ 50 salespeople and this array already holds valid data.

  1. Write the code to declare the array.
  2. Write the code to count how many of these salespeople had sales over $8000 for the second year.
  3. Write the code to find the highest sales amount over all three years.
  4. Write the code to find the total sales amount for the first year.
  5. Write the function definition, print, that will print the contents of the array. The array will be passed as a parameter.

Reference no: EM13165366

Questions Cloud

By what test could you identify the non-aqueous layer : If toluene(density 0.87) were used to extract ethylene bromohydrin (density 2.41) from an aqueous solution.
Personal experiences and reactions to variety of products : CW, Inc. publishes Consumer Watchdog, a magazine whose articles consist of the writers' personal experiences with and reactions to a variety of products. In the June 1997 issue of Consumer Watchdog, a review included this statement:
What salt is produced in each of neutralization reation : What salt is produced in each of the following neutralization reactions?
A direct-mapped cache with 8 two-word blocks : Based on the following sequence of word addresses generated by the processor:1, 134, 212, 1, 135, 213, 162, 161, 2, 44, 41, 221a) Given a direct-mapped cache with 8 two-word blocks that is initially empty
Two-dimensional array of double to hold the sales : Suppose you have a two-dimensional array of double to hold the sales amounts for all your salespeople three years. Assume you employ 50 salespeople and this array already holds valid data.
How many grams of the nonvolatile solute glycerol : The vapor pressure of pure methanol, CH3OH, at 30 °C is 160. torr. How many grams of the nonvolatile solute glycerol, C3H5(OH)3, must be added to 131. g of methanol to obtain a solution with a vapor pressure of 133. torr?
Infinite number of optimal dynamic-priority scheduling algo : Show that there exist an infinite number of optimal dynamic-priority scheduling algorithms. (Hint: Use the fact that both EDF and LLF are optimal).
Cyclic variations in occurrence of disease : Cyclic variations in the occurrence of disease may reflect:
Find the volume in cubic centimeters of a box : Find the volume in cubic centimeters of a box 25 mm x 12 cm x 0.20 m. How many grams of water should the box hold. The density of water is 1 g/mL and 1 cubic centimeter equals 1 mL.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  A run is a sequence of adjacent repeated val

A   run   is   a   sequence   of   adjacent   repeated   values.   Using   an   array,   write   a   program   that   generates   a   sequence   of

  Array of integers declared-initialized to number of tickets

Array of integers named parkingTickets has been declared and initialized to number of parking tickets given out by city police each day as beginning of current year.

  Write a for loop that adds the integers

Assume the int variables i , lo , hi , and result have been declared and that lo and hi have been initialized. Write a for loop that adds the integers between lo and hi (inclusive), and stores the result in result .

  Takes 100 number in an array

Write a program in c++ that takes 100 number in an array and add them and print the sum

  Distinguish syntax and purpose of while-loop and for-loop

Distinguish the syntax and purpose of while-loop and syntax of a for-loop. Give C++ code examples of both loops and descriibe the main differences.

  . write a segment of code that prints the number of elements

Assuming the array x has been defined as: int x[n]; for some n and that values have been assigned to all the elements. Write a segment of code that prints the number of elements between (but not including) the largest and smallest values in the array..

  First display the smallest volume and then the largest volum

first display the smallest volume and then the largest volume.

  Implement the delivery company

Implement the delivery company using the classes given in the class diagram above.

  Write a program to find that number for nguyen.

In some Asian countries, 8 and 6 are considered lucky digits. Any number containing only 8s and 6s is considered lucky number, e.g. 6, 8, 66, 668, 88, 886 .... Nguyen is a student who likes mathematics very much. Nguyen likes lucky numbers but only o..

  Develop a class airborne location

develop a class AirborneLocation that represents the location of airplanes with respect to a reference radar location. Each AirborneLocation object should include data member for aircraftID (integer),

  Create a text file named grades.txt

Write a program to calculate students' average test scores and their grades. Creat a text file named  grades.txt

  Write a complete c++ program

The main program will read in a parameter value n (read this in main). Then it will call a function read2arrays (details below) to read lists of grades into two arrays, which the main program will call test1 and test2 (or some other names of your ..

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