Number Array Class Design a class that has an array of floating-point numbers. T
ID: 3659755 • Letter: N
Question
Explanation / Answer
#include using namespace std; class NumberArray{ float *arr; int size; public: NumberArray(); NumberArray(int); ~NumberArray(); float getElement(int); void setElement(int,float); float getMax(); float getLowest(); float getAverage(); }; int main(){ int size,index; float value; coutsize; NumberArray myArr(size); coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.