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, 23.06.2019 00:00
What season was better from fortnite?
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Michael has written an e-mail to his employees that describes a new product special that will be introduced to the customers next week. by taking time to make sure the e-mail is well written, logical, and organized, michael has made sure his message has the characteristics of a) effective communicationb) ineffective communicationc) barriers to communicationd) workplace communication
Answers: 2
question
Computers and Technology, 23.06.2019 10:20
Suppose there is a relation r(a, b, c) with a b+-tree index with search keys (a, b).1. what is the worst-case cost of finding records satisfying 10 < a < 50 using this index, in terms of the number of records n1, retrieved and the height h of the tree? 2. what is the worst-case cost of finding records satisfying 10 < a < 50 and 5 < b < 10 using this index, in terms of the number of records n2 that satisfy this selection, as well as n1 and h defined above? 3. under what conditions on n1 and n2, would the index be an efficient way of finding records satisfying the condition from part (2)?
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, 22.11.2021 19:10
question
Mathematics, 22.11.2021 19:10
question
Mathematics, 22.11.2021 19:10
Questions on the website: 13722363