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

  Create a pseudo code users allow

Please create a pseudo code that would allow users to enter and submit survey (to store in the database) and display survey results of total entered surveyed

  Computer crime techniques

Computer Crime Techniques

  How would you display the man page for shadow

How would you display the man page for shadow in section 5 of the system manual?

  A speeder traveling 45 miles per hour

Police chase: A speeder traveling 45 miles per hour (in a 25 mph zone ) passes a stopped police car which immediately takes off after the speeder. If the police car speeds up steadily to 60 miles/hour in 10 seconds and then travels at a steady 60 mil..

  Explain limitations of operations research technique

Describing your selected operations research technique. You must explain the technique, assumptions and limitations of method, the kinds of problems

  Explain how has science enhanced quality of life

Explain typical day in your life from time you wake up, until time you go to bed. Explain how science influences you and your routine throughout the day.

  Show how many days are in the month

Complete the printMonth(int numDays, int startDay) method below to print a calendar month. The parameters numDays and startDay show how many days are in the month, and which day of the week the month starts on

  Why ratings for high quality pages must all get same rating

Ratings for high quality pages should all get the same rating. For example, a high quality page for a common interpretation of the query should get the same rating as a high quality page for a minor interpretation of the query.

  Create a java gui application using netbeans that calculates

Create a Java GUI application using Netbeans that calculates a restaurant bill from the prices of the appetizers, main course and desert.

  Describe two examples of vulnerabilities in automobiles

Describe two examples of vulnerabilities in automobiles

  Calculate overall cost including installation-configuration

Calculate the overall cost, including installation, configuration, maintenance, ISP, and miscellaneous costs. Do not consider depreciation in the cost computation.

  Compare the advantages and disadvantages of legacy

Using dot points, compare the advantages and disadvantages of legacy inter-VLAN routing and Router-on-a-Stick inter-VLAN routing.

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