Computers and Technology

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){ }

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:30, lailahussain99
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
image
Computers and Technology, 23.06.2019 10:00, thezbell
What is estimated time of arrival (eta)? a device that measures the acceleration (the rate of change of velocity) of an item and is used to track truck speeds or taxi cab speeds a gps technology adventure game that posts the longitude and latitude location for an item on the internet for users to find a north/south measurement of position the time of day of an expected arrival at a certain destination and is typically used for navigation applications
Answers: 3
image
Computers and Technology, 23.06.2019 12:30, umimgoingtofail
What is the difference between the internet and the world wide web?
Answers: 1
image
Computers and Technology, 23.06.2019 13:00, dimondqueen511
Which one of the following voltages should never be measured directly with a vom? a. 1200 v b. 500 v c. 800 v d. 100v
Answers: 2
Do you know the correct answer?
Create a C++ console application to store points for contestants in a contest. Ask the user for the...

Questions in other subjects:

Konu
World Languages, 02.10.2019 18:10