subject
Computers and Technology, 27.04.2021 15:20 meccadm

In order to solve this problem, you need a good understanding of using fscanf to load data from a file into multiple arrays. You can watch the recording available in the File I/O module related to this topic. Also, you need knowledge of strings, and functions. You can use ctype. h and string. h library if you wish (it is encouraged to use them). This program might take time to complete. So, start as soon as possible. write program in C
Problem: Grade Summary Generator
There is a text file grades. txt that contains students id, name and grades in different grading items. The total grade of a student is calculated based on those numbers.
The first line of the file contains two integers N and G, where N represents the next N lines contains data about students and G represents that there are G number of quizzes for each student.
The next N line contains data about students. Each line contains a unique student id (single word string), student last name ( single word string and all lower case letter), 2+G number of float numbers where the first number is the score for the midterm exam, the second number is the score in final term exam, and the remaining G numbers are the scores for G number of quizzes. The total score of a student is calculated by the following formula:
total score = 35% of midterm + 40% of final term + 25% of the average of G quizzes.
Your program needs to read these data and load them into multiple arrays. Then your code should create a summary of the grades and write the result to summary. txt file as well as display the summary in the console output.
After producing the summary. txt file, your code should take a name (single word string) as user input and search the name within the array and then display the related result.
Implementation restriction:
Your code should define the following constant and use them.
#define MAXSTD 100 //maximum number of students
#define MAXITEMS 10 //maximum number of quizzes
#define STLEN 51 //maximum char array size. Max string length is 50.
Your main function should declare and use the following arrays:
int main()
{
char ids[MAXSTD][STLEN]; //for string ids
char names[MAXSTD][STLEN];// for storing last names
float grades[MAXSTD][MAXITEMS]; // for storing grades
float totals[MAXSTD]; //for storing calculated totals
other lines
}

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, dustysorrells74
Someone with this coz i don’t really know what i can choose, just pick whatever u want. homework - you need to choose a website that you like or use frequently. you must visit the website and discuss 6 different features/parts/aspects of the website that you think makes it good. (100 words)
Answers: 2
image
Computers and Technology, 23.06.2019 18:00, taiyana74
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
image
Computers and Technology, 23.06.2019 20:40, aurikmah2005
Instruction active describing list features which statements accurately describe the features of word that are used to create lists? check all that apply. the tab key can be used to create a sublist. the enter key can be used to add an item to a list. the numbering feature allows for the use of letters in a list. the numbering feature can change the numbers to bullets in a list. the multilevel list feature provides options for different levels in a list.
Answers: 2
image
Computers and Technology, 24.06.2019 09:10, daedae11142
  to change the number of rows and columns displayed by the excel object a. select the object and drag a size handle on the active object. b. deselect the object and drag a size handle of the object. c. deselect the object and drag a row or column divider of the object. d. select the object and drag a row or column divider on the active object.
Answers: 2
You know the right answer?
In order to solve this problem, you need a good understanding of using fscanf to load data from a fi...

Questions in other subjects:

Konu
Mathematics, 04.07.2019 02:00
Konu
History, 04.07.2019 02:00