Question: C++ PFArrayD Class Display 10.10 Display 14.8 Define a class named PFArrayD that partially fills an array of doubles Include these members A pointer t

C++
 C++ PFArrayD Class Display 10.10 Display 14.8 Define a class named
PFArrayD that partially fills an array of doubles Include these members A
pointer t doubles(a); member variables that stores the size of the array(capacity)

PFArrayD Class Display 10.10 Display 14.8 Define a class named PFArrayD that partially fills an array of doubles Include these members A pointer t doubles(a); member variables that stores the size of the array(capacity) and the number of elements currently in use(used) A constructor to initialize an array with a capacity of 50; a constructor to construct an array with a capacity Value and a destructor e member variable that store an array of - A function that adds an element if the array is not full and increase the number of elements in use - A function that returns true if the array is full - Functions that read the value of the element and assign a value to the element at a specific index - Accessors and mutators named getCapacity getNumberUsed, setCapacity, and setNumberUsed PFArrayD Class: Testing Write a program to test the PFArrayD class his program tests the class PFArray nter capacity of this super array: 10 nter up to 10 nonnegative numbers lace a ative number at the end ou entered the fol lowing 4 numbers 1.1 2.2 3.3 4.4 Test again? (y) y nter capacity of this super array: 5 nter up to 5 nonnegative numbers lace a negative number at the end 2 2.3 3.44.5 5.6 the ou entered the following 5 numbers 1.2 2.3 3.4 4.5 5.6 Test again? (y) n PFArrayD Class: Testing (cont.) int main) cout next; while ((next >. 0) && (Itemp . sFull())) { temp.addElement (next); cin > next; cout > ans; cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!