Can u help me to program this problem and how to make the coding?
The program will take data from the file examdat.txt. The first line of the file contains the number of questions on that exam and followed by a space and then an n-character string of the correct answer for that exam.In this program, a function named fgetAnswers that inputs the student ID and student's answer from the file examdat.txt.This program will also produce an output file,report.txt, containing the answers key, each student's ID and each student's score as a percentage,and the information about how many student missed each question.