Hi i need help understanding how to allocate memory for this array if you could
ID: 3660307 • Letter: H
Question
Hi i need help understanding how to allocate memory for this array if you could help me with the array it would be very helpful thx for the help You advise 11 students, each of whom are taking 4 classes in the Spring 2007 semester. In each class the students have 5 essential grades. You are required to statistically measure the performance of you advisees by: printing the average grade for every student in every class; printing out the average grade per class; printing out the average grade per student over all classes. Your college administration wants this task accomplished by a program which allocates memory for the array to hold the student grades in the classes. Then, each printing must be accomplished by a separate function with the array or portions thereof passed as parameters.Explanation / Answer
#include #include #include using namespace std; #define N 5 char names[N][20]; float votes[N]; float totalVotes = 0; int winnerPos; float winnerVotes; float percentageVotes[N]; void get_input() { int i; for (i=0;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.