Answered step by step
Verified Expert Solution
Question
1 Approved Answer
* * * * CODE IN C * * * * A high school debate and speech club coach needs to form teams for the
CODE IN C
A high school debate and speech club coach needs to form teams for the upcoming competition. Students have different level of accumulated points from past debate and speech activities. For example, the club has students, with points
The coach would like to form teams of students based on points, at beginner points honor points and excellence points levels. Student and with points will be in the beginner team because their levels are equal or closer to than to and and student with points and will be in the honor team, and student and with points and will be in the excellence team.
Write a program that assign students to teams based on their accumulated points.
The program reads in the number of students, and their points.
Use an array to store points.
Use another array of the same size to store team assignment.
The program should include the following function:
void assignint points int teamassignment int n;
The function calculates the team assignment and store the results in teamassignment array Array points represents the points for each students. n is the total number of students.
Use library function abs is to return the absolute value of an integer. Include stdlib.h
Follow the format in the examples.
Example #
Enter number of students:
Enter points for each students:
Beginner team: student
Honor team: student
Excellence team: student
Example #
Enter number of students:
Enter points for each students:
Beginner team: student
Honor team: student
Excellence team: student
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started