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)
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..
|