subject

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 Demonstrate the class in a main program. All methods should be implemented and called.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 08:10
Where are american poets found in the dewey decimal system
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
How are roger williams, james oglethorpe, and william penn similar?
Answers: 3
question
Computers and Technology, 24.06.2019 22:00
Is the process of organizing data to reduce redundancy. a. normalization b. primary keying c. specifying relationships d. duplication
Answers: 1
question
Computers and Technology, 25.06.2019 10:00
Most common level of education for a programmer or software developer
Answers: 1
You know the right answer?
Design a class that has an array of floating-point numbers. The constructor should accept an integer...
Questions
question
English, 08.04.2021 19:50
question
Biology, 08.04.2021 19:50
question
English, 08.04.2021 19:50
question
Mathematics, 08.04.2021 19:50
Questions on the website: 13722360