C Programming You are going to add Names to your class grades info system with a
ID: 3568018 • Letter: C
Question
C Programming
You are going to add Names to your class grades info system with at most 15 grades capacity. In your program you have all previous functions but you should have names beside grades maximum of 20 characters. Add grades to class, Remove grades, Print grades, Sort grades, Find Max/Min grades and Calculate average. To make debuggingyour program easier, enter the first four names and grades of the class inside your program, so every time you run the program you will have at least four records ready. To solve this problem you need to declare 6 functions: addGrade, removeGrade, printGrade, sortGrade, findMinMax, calcAverage. In your main function you will need to declare grades array with size 15 and initialize it with at least four grades as well as the names array which should be an array of strings (two dimensional character array) initialized by four names, which any changes on a specific row of grades array should happen on the same row of names as well, also you will need to have a counter variable to keep the number of grades, initially 4, and by adding every grade you will add one to this variable and by removing a grade you will decrease it by one. Then for every function you need to pass grades array, names array and the counter to them. And as you see, inside your sort function, you need to call your print function to print the list of the grades after sorting.
first Part
You are going to create a class grades info system with at most 15 grades capacity. In your program you have 6
functions. Add grades to class, Remove grades, Print grades, Sort grades, Find Max/Min grades and Calculate average. To make
debugging your program easier, enter the first four grades of the class inside your program, so every time you run the program
you will have at least four records ready.
To solve this problem you need to declare 6 functions:
addGrade, removeGrade, printGrade, sortGrade,
findMinMax, calcAverage. In your main function you need to
declare grades array with size 15 and initialize it with at least
four grades also you need to have a variable to keep the
number of grades initially 4. Then for every function you need to pass grades array and number to them. And as you see, inside
your sort function, you need to call your print function to print the list of the grades after sorting.
Explanation / Answer
#include <winsock.h>
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CLASS_SIZE 60
#define subjects 5
//===================================
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.