Array of floating-point numbers

Assignment Help Business Management
Reference no: EM132255006

Design a class that has an array of floating-point numbers. The constructor should accept an integer argument and dynamically allocate the array to hold that many numbers. The destructor should free the memory held by the array. In addition, there should be member functions to perform the following operations:

  • Store a number in any element of the array
  • Retrieve a number from any element of the array
  • Return the highest value stored in the array
  • Return the lowest value stored in the array
  • Return the average of all the numbers stored in the array.
Sample Run
How many numbers do you want to store? 4
Enter the 4 numbers:
        Number 1: 10
        Number 2: 20
        Number 3: 30
        Number 4: 40
---------------------------------
Here are the numbers you entered:
Number 1: 10
Number 2: 20
Number 3: 30
Number 4: 40
---------------------------------
The average of those numbers is: 25
The highest of those numbers is: 40
The lowest  of those numbers is: 10

Reference no: EM132255006

Questions Cloud

How do you think the political climate has affected : Identify a state health policy and the tools used to implement the policy. How do you think the political climate has affected the choice of policy tools.
What are the consequences of violating the fisma : What are the consequences of violating the FISMA, HIPAA, and FERPA laws?
What amount will be in the fund : Sally Medavoy will invest $8,000 a year for 20 years, If the first payment into the fund occurs today, what amount will be in the fund in 20 years
What conclusions about listening can you draw from this : Which of these habits are you guilty of? How would you react if someone you were speaking to committed one of these bad habits?
Array of floating-point numbers : Design a class that has an array of floating-point numbers. The constructor should accept an integer argument and dynamically
Do you think the label was used inappropriately : Find a study published in a nursing journal in 2010 or earlier that is described a s a pilot study. Do you think the study really is a pilot study.
Print the following line of message regardless : Create a Python program using if structure which firstly asks user to enter the age. If the user is younger than (less than) 16, print the following
Descriptions of project management communication strategies : Detailed descriptions of project management communication strategies at your place of business as they exist today.
Compute the January balance for Oriole : Oriole's sales journal for January shows a total of $111,000 in the selling-price column, Compute the January 31 balance for Oriole

Reviews

Write a Review

Business Management Questions & Answers

  Analyzing a marketing opportunity

Why must internal assessments be conducted when analyzing a marketing opportunity? Provide three reasons.

  Explain criminal intent

What is meant by the phrase "crimes are statutory offenses"? Explain Criminal Intent.

  Assumptions about human nature in general

How does a person's attitudes and assumptions about human nature in general affect his or her leadership approach? How might a leader's attitudes about him or herself alter or reinforce this approach? Explain with an example.

  Locate an organization that uses several pricing objectives

Locate an organization that uses several pricing objectives, and discuss how this approach influences the company's marketing-mix decisions.

  Describe why you think that would be the best bet

You are an investor in small businesses as well as you have three business plans on your desk. Select one of the potential business owners listed. Describe why you think that would be the best bet for an investment.

  Think of it investments as assets

Evaluate some ways in which health care leaders strategically think of IT investments as assets.

  Beyond the flames-the story of project wildfire

It is about a collaborative fire-wise effort dealing with wildland fire interface risk reduction efforts in the community of Bend, Oregon.

  Calculate the amount of dividends dean

Using the information below for Dean Corporation, calculate the amount of dividends Dean most likely paid to common stockholders in 2008, 2009, and 2010: Retained earnings balances Year Net income January 1, 2008 $ 700 December 31. 2008 $890 2008 $25..

  Why is the given article relevant to todays managers

Write a summary of the news story and the key learning points you will take away from the article. Why is this article relevant to today's managers?

  Principles of management

Your essay will respond to the first 25 minutes of this 52 minute YouTube video by Dr. Asa Hilliard. Your essay must be outlined according to the 7 sections listed below. Your essay must show your accurate and complete understanding of these 7 anal..

  What is a bond

What is a bond? Explain the three different characteristics of bonds and why is each characteristic important?

  Governance and advisory boardswhat is the value of an

governance and advisory boardswhat is the value of an advisory board and a governance board?are there situations where

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