Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that reads in an array of type int . It provides facility to eit

ID: 3553881 • Letter: W

Question

Write a program that reads in an array of type int. It provides facility to either read an array from the keyboard or from a file, at the user's choice. If the user chooses file input, the program should request a file name. You may assume that there are fewer than 100 entries in this array. Your program determines how many entries there are. In addition, the program should also find the maximum number in the array and calculates the average of the array. You are required to use functions. (20 marks)

Explanation / Answer

#include #include using namespace std; void Keyboard(int *pNum, int *pCount); //case 1 void CountNums(int *pNum, int **pCount, int count); int FindHighestNum(int *pNum, int count); int main() { int *pNum = NULL; int *pCount = NULL; int i = 3; while (i != 0) { cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote