Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are given a list of names / scores in a recent exam. You are to do the following: Define constants: NAME _ SIZE to
You are given a list of namesscores in a recent exam. You are to do the following:
Define constants: NAMESIZE to be GRADESIZE to be and CLASSSIZE to be
Use an array of struct defined by :
typedef struct
char nameNAMESIZE;
int score;
char gradeGRADESIZE
studentt
Store and manipulate student records in an array of studentt capable of holding CLASSSIZE students. Print a table of results to include a line for each student giving name, score and rating. A list of namesscores to read into the array is included below; to save time while testing your program, enter just the first letter of each name and the score.
write a function to read the student data into the array of structs from the keyboard. When testing your code, use the student data shown below.
compute the average score and
assign grades to each student according to the following rule: If a student's grade is more than points above the average, assign them a grade of "OUTSTANDING". If a student's score is more than points below the average assign the grade of UNSATISFACTORY. Otherwise assign the grade of SATISFACTORY.
RICHARDLUGAR
FRANKRIZZO
JALENHURTZ
CHUCKBEDNARIK
LANCEARMSTRONG
TOMBRADLEY
ABELINCOLN
YOGIBERRA
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