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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
You have a large, late-model pick-up truck with a rear seat. the pick-up truck weighs 6,500 pounds. the florida seat belt law
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
Technician a says that the radiator usually cools better if the front air dam is removed. technician b says that when a condenser has a leak it can be repaired easily with epoxy. who is correct?
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Michael has written an e-mail to his employees that describes a new product special that will be introduced to the customers next week. by taking time to make sure the e-mail is well written, logical, and organized, michael has made sure his message has the characteristics of a) effective communicationb) ineffective communicationc) barriers to communicationd) workplace communication
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
You know the right answer?
Design a class that has an array of floating point numbers. the constructor should accept an integer...
Questions
question
Mathematics, 05.05.2021 06:40
question
English, 05.05.2021 06:40
question
Chemistry, 05.05.2021 06:40
question
Mathematics, 05.05.2021 06:40
Questions on the website: 13722363