The answer is the letter a
Page layout and header i think is correct
Answer:
C++
Explanation:
class MyBoxes {
private:
// Pointer to Box object and array size. Required for dynamically creating an array.
Box* boxes;
int array_size;
// Constructor
MyBoxes(int array_size) {
self.array_size = array_size;
boxes = new Box[array_size] ;
}
public:
// Methods
int emptyspace() {
int count = 0;
for (int i=0; i < self.array_size; i++) {
// Check for null
if (!boxes[i])
count++;
}
return count;
}
void add(int length, int width, int height) {
Box box1(length, width, height);
if (self.emptyspace() == 0) {
self.addToArray(box1);
}
}
void print() {
Box *temporaryBox;
for (int i=0; i < self.array_size; i++) {
temporaryBox = boxes[i];
if (temporaryBox) {
cout<<temporaryBox->length<<endl;
cout<<temporaryBox->width<<endl;
cout<<temporaryBox->height<<endl;
}
}
// Free memory
delete temporaryBox;
}
The odd values in a list can be calculated by knowing the first and last number, whereas even numbers can be divided by two and the remainder is zero (0).
<h3>What are even numbers and odd numbers?</h3>
The even numbers can be found in a list because they are divisible by two and the remainder of this equation is always zero (0).
Conversely, odd numbers are those that cannot be divided exactly into exact entire numbers (e.g., 3, 5, etc).
The odd numbers in a list can be calculated by the equation ON (odd numbers): n/2 × [f + g], where 'f' is the first number and 'g' is the last number.
In conclusion, the odd values in a list can be calculated by knowing the first and last number, whereas even numbers can be divided by two and the remainder is 0.
Learn more about odd numbers here:
brainly.com/question/2263958
#SPJ1