Answered step by step
Verified Expert Solution
Link Copied!

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 names/scores in a recent exam. You are to do the following:
Define constants: NAME_SIZE to be 30 GRADE_SIZE to be 20 and CLASS_SIZE to be 30.
Use an array of struct defined by :
typedef struct {
char name[NAME_SIZE];
int score;
char grade[GRADE_SIZE]
} student_t
Store and manipulate student records in an array of student_t capable of holding CLASS_SIZE students. Print a table of results to include a line for each student giving name, score and rating. A list of names/scores 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.
1. 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.
2. compute the average score and
3 assign grades to each student according to the following rule: If a student's grade is more than 10 points above the average, assign them a grade of "OUTSTANDING". If a student's score is more than 10 points below the average assign the grade of UNSATISFACTORY. Otherwise assign the grade of SATISFACTORY.
RICHARD_LUGAR 55
FRANK_RIZZO 71
JALEN_HURTZ 84
CHUCK_BEDNARIK 93
LANCE_ARMSTRONG 84
TOM_BRADLEY 84
ABE_LINCOLN 99
YOGI_BERRA 78

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions