Determining the major task

Assignment Help Basic Computer Science
Reference no: EM131108687

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: EM131108687

Questions Cloud

Definition of the university system : Describe the activities that are required in each of the steps of the modeling and simulation process that estimates the utilization of the scarcest resource in your definition of the university system.
Largest and smallest positive numbers : Consider the normalized floating point system (2; 4,-3; 5). (a) What are the largest and smallest positive numbers?
Who spread buddhism in korea : What Mauryan ruler was the first to adopt Buddhism?How old was Buddha when he attained enlightenment? Who spread Buddhism in Korea
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..
Determining the major task : 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..
What are the output signals : An input signal V1 is applied to the sum port of a 180? hybrid, and another signal V4 is applied to the difference port. What are the output signals?
How did islam arrive in china : Xi'an can boast the Grand Mosque, founded nearly 1,300 years ago and the oldest in China. How did Islam arrive in China
Find the necessary spacing and widths of the lines : If the coupler is to be fabricated in micro strip on an alumina substrate with r = 10 and d = 1.0 mm, compute Z0e and Z0o for the two adjacent lines, and find the necessary spacing and widths of the lines.
Example of a valid palindrome : A palindrome is a word that reads the same forward as it does backward. An example of a valid palindrome is the word "race car". An example of a word that is not a palindrome is "trust" (it reads backwards as "tsurt"). Develop a C program that ide..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the difference between a combination

Assume that the probability of a server failing over night is p = 0.1. If you have 1000 servers, what is the probability that 100 servers will have failed over night?

  Determine number in cs register

If code segments for the 8086 program start at address 70400H, what number will be in CS Register? Suppose the same code segment base.

  Contain the key ideas from the materials

For weeks 3, 4 and 5 e-learning materials will be placed on Blackboard for review and application. Review means that each student should look at the video read the recommended text and record a response as follows: For each week of materi..

  Advantages of joining two tables

What is inner join and what is outer join? Give some potential real world applications of joins.

  Risk of using a signed public key

Describe a scenario where the risk of having an unsigned public key is not acceptable but the risk of having a signed public key is acceptable. Describe a scenario where risk of using a signed public key is not acceptable

  How it would validate the customer complaint

Trouble Ticket 101: Customer in Atlanta complains that when she tries to log into the system server.headquarters.com in New York, she gets disconnected with a time-out. However, her colleague in her New York office reports that he is able to acces..

  Describe the communication pattern of the binary-exchange

What are the parallel run time, speedup, efficiency, and isoefficiency function of the binary-exchange algorithm on a linear array?

  Estimate the time variance

What are the cost and schedule variances and CSI? Estimate the time variance.

  Continuations in place of exceptions

In addition to continuations that represent the "normal" continued execution of a program, we can use continuations in place of exceptions. For example, consider the following function f that raises an exception when the argument x is too small:

  Describe how you identified options for handling challenges

Describe how you identified/evaluated options for handling those challenges. Describe how you resolved/overcame the challenge(s)

  Consecutive insertions into a binomial queue

1. When do M consecutive insertions into a binomial queue take less than 2M time units? 2. Suppose a binomial queue of N = 2k - 1 elements is built. Alternately perform M insert and deleteMin pairs. Clearly, each operation takes O(log N) time. Why do..

  Implement the class with accessors and mutators

Implement the class with accessors and mutators for the movie name and MPAA rating. Write a method addRating that takes an integer as an input parameter.

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