Array of monthly sales figures

Assignment Help Basic Computer Science
Reference no: EM131102363

Write a C++ program using pointers that will create dynamically allocated array of monthly sales figures whose size has been input by the user. After prompting the user to input the sales figure, it will find the highest monthly sales amount and the lowest monthly sales amount. And it will calculate the average sales of the monthly figures.

The program should be modular with each major task being handled by its own function.

(PLEASE USE POINTERS.)

Sample run:

Please input the number of the monthly sales figures to be input: 4

Please input the sales for month 1: (some number)

Please input the sales for month 2: (some number)

Please input the sales for month 3: (some number)

Please input the sales for month 4: (some number)

The highest monthly sales amount was (highest sale)

The lowest monthly sales amount was (lowest sale)

The average sales amount for 4 sales figures is (average)

Reference no: EM131102363

Questions Cloud

Formula for the minimum number of cuts : Cutting a stick, A stick n inches long needs to be cut into n 1-inch pieces. Outline an algorithm that performs this task with the minimum number of cuts if several pieces of the stick can be cut at the same time. Also give a formula for the minim..
What differences would you expect to find between a grocery : Profit margins and turnover ratios vary from one industry to another. What differences would you expect to find between a grocery chain such as Safeway and a steel company? Think particularly about the turnover ratios, the profit margin, and the Du P..
Explain the advantages of a commercial package policy : What is a package policy? Explain the advantages of a commercial package policy to a business firm as compared to the purchase of separate policies. Identify the causes of loss that are covered under the Causes-of-loss basic form.
Analyze the relationships among the three quality principles : Describe each quality principle and show how it is illustrated in the article. Analyze the relationships among the three quality principles. Examine whether the principle in one example might apply to other examples.
Array of monthly sales figures : Write a C++ program using pointers that will create dynamically allocated array of monthly sales figures whose size has been input by the user. After prompting the user to input the sales figure, it will find the highest monthly sales amount and t..
How is management accounting information : How is management accounting information a means to an end?
Write a time-domain expression for the signal : A signal has the double-sided amplitude and phase spectra shown in Figure 2.34. Write a time-domain expression for the signal.
Requirements for a banking application : Consider the following data requirements for a banking application.
Which therapeutic approach do you think is best : Write a paragraph on how this diagnosis could be treated by each of the four major schools of psychotherapy - How might the Prochaska Model of Change assist.

Reviews

Write a Review

 

Basic Computer Science Questions & Answers

  How many different keys do we have to generate

How many different keys do we have to generate such that every pair of nodes can communicate in a bi-directional secure way using classical cryptosystem?

  Virtualization imagine you are a senior systems

imagine you are a senior systems administrator who has been tasked with considering whether or not to implement server

  Design an application to take and process a pizza order

Design an application to take and process a pizza order. The user should be able to make pizza order choices from listboxes, and the application should display the order price.

  Write a program that simulates an xor operation

For example, if the input is 1011, then the output will be 1. You can assume that the input word is guaranteed to contain only 0s and 1s.

  How can we determine their equivalence

How can we determine their equivalence?

  What is the ieee-754 single-precision binary representation

Program: What is the IEEE-754 single-precision binary representation of the floating point number 49.625?

  Numbers as 4-bit words in 2''s complement form

Q. Assume the following numbers are represented as 4-bit words in 2's complement form. Perform the following operations and identify, in each case, whether or not an overflow occurs

  If the rear wheels slip or the front wheels lift off

The front wheels are free to roll. The tractor weighs 2500 lb and has a center of gravity at G.

  What aspects of program behavior and meaning are explicit

The final augmentation for this example is degenerate. It does not increase the flow, but it leaves no eligible edges, which guarantees that the flow is a mincost maxflow.

  Create a dictionary to hold the terms to traslate

A dictionary can't contain multiple item with the same key. A key must be immutable. It can be a string, number or a tuple. A key must be immutable to make sure it is not changed to a key which is already in the dictionary.

  Designing unique game world

Answer the questions listed below under Part A - save your answers into a Word document for submission along with remainder of your assignment. Design your own unique game world, which must exhibit the following characteristics:

  What is the difference between author mode and user mode

what is the difference between "author mode" and "user mode"? 2. When would you choose each

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