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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:30, stodd9503
Awell-diversified portfolio needs about 20-25 stocks from different categories is this true or false?
Answers: 2
image
Computers and Technology, 22.06.2019 19:30, 710jonathan
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
image
Computers and Technology, 23.06.2019 06:30, eddsworldfrantic
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
image
Computers and Technology, 23.06.2019 14:00, LuvIsRage2
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
You know the right answer?
Create a C++ console application to store points for contestants in a contest. Ask the user for the...

Questions in other subjects:

Konu
Biology, 05.12.2020 05:50
Konu
Mathematics, 05.12.2020 05:50
Konu
Mathematics, 05.12.2020 05:50
Konu
Mathematics, 05.12.2020 05:50