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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
What is linux? an open source operating system a version of ms dos the first version of unix the newest technology available
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
Me if you do then you get 10 points and brainliest
Answers: 1
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
question
Mathematics, 15.12.2019 23:31