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

  Extend the definition of the class clocktype by overloading

a. Extend the definition of the class clockType by overloading the post-increment operator function as a member of the class clockType

  Write a matrix multiplication program

Write a C++, matrix multiplication program which you can instrument to monitor and measure execution time as a function of problem size. Make sure it works in Microsoft Visual Studio.

  Program to next the loops in either direction

You can write your program to next the loops in either direction, that is, process row-by-row or column-by-column. Explain which way you would choose to process the data.

  Program that displays the ball at a random

Write a C++ program that displays the ball at a random location and then makes the ball move down to the bottom of the screen. When the ball reaches the bottom of the screen, it should start these actions over again, appear-ing at another random l..

  Project

Unit 3 Individual Project SSCI210 – 1304B – 01 A typical individual who commits who commits hate crimes whether it is against or aimed at the Gay/lesbian community , the persons of color or the Jewish community, ( I mention these three because they a..

  Techniques for information hiding and encapsulation

What techniques did you utilize for information hiding and encapsulation? Are there any improvements you would make? If so, what would they be?

  Multidimensional arrays

multidimensional arrays to life, let's consider a specific example: How can you visualize a 4-dimensional array? How can you give meaning to each dimension this array has? What kind of application would such an array be useful for?

  Data from the file grocery.dat

Read the data from the file Grocery.dat and assign values to the 10  GroceryItem  objects. Next display these items to allow a customer to select grocery items from the list and indicate the quantity of that item he or she would like to order. When t..

  Program that compares the number of possible sequences

Write a c++ program that compares the number of possible sequences of the length L that can be generated. The program must output a formatted list comparing the number of possible sequences for L=5,6,7,8,9. given size N=9

  Input parameters, and returns nothing

Write a function called ten2one(), that takes no input parameters, and returns nothing (void). The body of the function must include a loop that counts from 10 down to 1, printing the count value each time in the loop. The output should look like (no..

  Calculates the student * averages and quiz averages based

Calculates the student * averages and quiz averages based upon input from the user. Modify this program to read in the following grade text file, * with a maximum number of students set to 35 and having five quiz scores for each student. The output s..

  Testing a program based on varying

Testing a program based on varying input values without knowing what the code looks like is called _____.With _____ testing, you make sure that every instruction in the code is executed at least once.

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