Computers and Technology
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
}

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 23:30, elizabethburkha
Which text format is this, "the text is transcribed exactly as it sounds and includes all the utterances of the speakers. "?
Answers: 2
image
Computers and Technology, 23.06.2019 11:00, jolleyrancher78
What are the possible consequences of computer hacking? what is computer piracy? describe some examples. what are the effects of computer piracy? what are the possible consequences of computer piracy? what is intentional virus setting? describe some examples. what are the effects of intentional virus setting? what are the possible consequences of intentional virus setting? what is invasion of privacy? describe some examples. what are the effects of invasion of privacy? what are the possible consequences of invasion of privacy? what is an acceptable use policy and what is the purpose of the acceptable use policy what is intellectual property and how can you use it?
Answers: 1
image
Computers and Technology, 24.06.2019 10:40, 29delphina
Joe needs to see the slide transitions and animations he has applied to his slides in a large view. which presentation view should he use? in which tab would joe find the animations option to make further changes, if any?
Answers: 1
image
Computers and Technology, 24.06.2019 17:40, maxdmontero
This assignment continues work on the online booking facility introduced at the end of chapter- 10. the work will be continued in the assignments for chapters 14 and 15 (a) assume that you will produce your online booking facility using an agile approach. i. suggest the kind of user research you would like to conduct for your product before iteration cycles begin. ii prioritize the requirements for your product according to business value, i. e which requirements are likely to provide the greatest business benefit, and sketch out the ux design work you would expect to undertake during the first four iteration cycles, i. e. cycle 0, and cycles 1 to 3. (b) using one of the mockup tools introduced above, generate a mockup of your product's landing page, as developed in the assignment for chapter-11 (c) using one of the patterns websites listed previously, identify suitable interaction patterns for elements of your product, and develop a software-based prototype that incorporates all the feedback and the results of the user experience mapping achieved at the end of chapter-11. if you do not have experience in using any of these, create a few html web pages to represent the basic structure of your website
Answers: 2
Do you know the correct 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: