subject

Problem 1 in this problem, you will read a set of student data and their grading information from a file and then process them and then write the requested data to another file. in a course, there are n number of students. each student has to complete one assignment, appear m number of quizzes and a final exam. the total score of the student is calculated as follows: the total score = sum of scores from m quizzes + score in the assignment + score in the final exam write a program that will perform the following operation: • create a student structure to store student's last name (one word), scores for one assignment, m quizzes (m is a user input), final exam, and total. take number of students n and number of quizzes m as the input. dynamically allocate memory for n students. for each student dynamically allocate memory to store scores of m quizzes. take input for all the scores for quizzes, assignments, and final exams for all the students. calculate the total scores for each student and store it in the corresponding structure. do this whole task in a separate method and return the appropriate pointer. the function header should look like this: students* readdata(file *in, int *noofrecords, int *noofquiz) • display the student(s) details who achieved the highest total score. also write the same student details into file output. txt sample input: all the inputs, including n and m will come from an input file called input. txt the input file is structured as follows: 32 //n and m adam 10 12 9 45 // last name, assignment score, scors for m number of quizzes, and final exam score jones 8 11 7 41 muhammad 10 12 10 45 sample output. txt: name: muhammad assignment: 10 quizzes: 12 10 final exam: 45 total: 77

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:30, jayjay5246
Which option correctly describes a dbms application? a. software used to manage databases b. software used to organize files and folders c. software used to develop specialized images d. software used to create effective presentations
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, Felixthecat7186
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a, b] se pot scrie ca produs de două numere prime? “.
Answers: 3
image
Computers and Technology, 23.06.2019 19:30, bevanscory123
What are loans to a company or government for a set amount of time
Answers: 1
image
Computers and Technology, 23.06.2019 20:00, noah12345678
What multimedia system creates an immersive, real-life experience that the user can interact with?
Answers: 1
You know the right answer?
Problem 1 in this problem, you will read a set of student data and their grading information from a...

Questions in other subjects:

Konu
Geography, 01.09.2019 14:50
Konu
History, 01.09.2019 14:50