subject

Create a C++ console application to store points for contestants in a contest. Ask the user for the number of contestants. Create two parallel dynamic arrays, one to store the names and one to store integer scores from zero to 100. Do not accept out of range numbers. Ask the user for each name and the score one at a time. When you encounter the end of the array, print all names and scores. Also, print the average and indicate whether each score is above or below average. The example is attached in the file and I want you to get the same output on the shown display of the program.
Requirements:
1 Add comments as you code. Do NOT wait until you are done coding. Also, in the beginning of your codes include the following comments:
Purpose of the program,
Name of the author, and
Date
2 Tell the user what the program is all about.
3 Create a function to get the values from the user and store them in the arrays. Pass the pointers and array size to the function. This function will have a void return type.
4 Create a function to calculate the average. Pass a pointer and the size to the array. The function should return the average.
5 Create another function to print the result. Pass the pointers, the array size, and the average to the function.
6 Do not pass arrays to functions. Even though it is possible to do so, we are trying to practice using pointers.
7 All functions will be called only by the main. Prevent calling them by other functions.
8 No global variables are allowed.
9 Delete the arrays to free the memory after printing the results.
10 Ask the user if they want to continue. If so, ask the questions again.
11 Test, test, and test.
Hints:
Please, do NOT use 'break' or 'continue' in the code.
This is how you create a dynamic array: arrayPtr = new int[size];
Use this syntax to pass the pointer to a function: void display (string* namePtr){ }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 00:40
Use a software program or a graphing utility with matrix capabilities to solve the system of linear equations using an inverse matrix. x1 + 2x2 − x3 + 3x4 − x5 = 6 x1 − 3x2 + x3 + 2x4 − x5 = −6 2x1 + x2 + x3 − 3x4 + x5 = 3 x1 − x2 + 2x3 + x4 − x5 = −3 2x1 + x2 − x3 + 2x4 + x5 = 5
Answers: 3
question
Computers and Technology, 24.06.2019 16:30
The database design steps are listed below in the incorrect order. choose the correct order number next to each step. determine the information to be stored in the database. determine the fields needed to record the data determine if there will be any repetition of data entered, and separate the fields into tables to normalize the data. create relationships to connect the tables.
Answers: 3
question
Computers and Technology, 24.06.2019 17:40
Pseudocode pld #6, pg. 117 start// declarations// number numbertoguess// number myguess; numbertoguess = 92// while myguess ! = numbertoguess// output " guess an integer number between 1 and 100"// input myguess// if (myguess == numbertoguess)// output "you guessed the correct number"// else// output "the number you guessed was incorrect. try again! "// end if// end while// output " for playing the guessing game. have a great day! "// stop
Answers: 3
question
Computers and Technology, 24.06.2019 18:00
Why is a multiview sketch drawinf different from other sketches like isometric, two point, and oblique
Answers: 1
You know the right answer?
Create a C++ console application to store points for contestants in a contest. Ask the user for the...
Questions
question
Biology, 23.09.2019 05:30
question
Biology, 23.09.2019 05:30
question
Chemistry, 23.09.2019 05:30
Questions on the website: 13722360