Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
int* integerArr( int number);
int main(){
int* address;
address = integerArr(5);
for ( int i = 0; i < 10; i++ ) {
cout << "Address of the integer array: ";
cout << *(address + i) << endl;
}
return 0;
}
int* integerArr( int number){
int myArr[number];
for (int i = 0; i < number; ++i) {
myArr[i] = rand();
}
int* ptr= myArr;
return ptr;
}
Explanation:
The C++ source calls the defined pointer function "integerArr" with an integer argument to declare arrays of dynamic length, in the main function of the program and the items of the array are printed on the screen.
Answer:
2 by 2 squares of data
Explanation:
If you have less than that it is not a chart.
wait i don't understand: "Write a program that has the user input how many classes they are taking this semester and then output how many hours they will need to study each week."
Answer:
Huffman code is use for encoding the language. The entropy when calculated is 1.5.
Explanation:
Using Huffman Coding scheme to encode:
The huffman coding scheme is described in the attachment.
To find entropy; we use the formula given below:
H = ∑
where H = Entropy and p = probability
p(A) = 50% = 1/2
p(B) = 25% = 1/4
p(C) = 25% = 1/4

Prison or juvenile detention of course, its a violation