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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:10
(328 inc. 448 ind. 480 in25. john has a collection of toy cars. he has 2 red cars, 4 blue cars, 4 black cars, and 6 yellowcars. what is the ratio of red cars to yellow cars? a. 1: 2b. 1: 3c. 1: 626. the net of a right triangular prism is shown below.
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Light travels at a speed of 186,000 miles a second. the distance light travels in a year is 5,865,690,000,000 miles/year 5,865,695,000,000 miles/year 58,656,950,000,000 miles/year 6,789,000,0000 miles/year
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. the program should output the average high, average low, and the highest and lowest temper- atures for the year. your program must consist of the following functions: a. function getdata: this function reads and stores data in the two- dimensional array. b. function averagehigh: this function calculates and returns the average high temperature for the year. c. function averagelow: this function calculates and returns the aver- age low temperature for the year. d. function indexhightemp: this function returns the index of the highest high temperature in the array. e. function indexlowtemp: this function retur
Answers: 3
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
question
Social Studies, 16.07.2019 04:30
Questions on the website: 13722367