Write a program that reads the entire candidate.txt file and calculates the total score of each candidate, prints the information of the candidates on the screen and writes the candidate who got the highest total score to a another sequential access text file. This new file should be in the this format; name, surname, school graduation grade, Academic Personnel and Postraduate Education Entrance Exam score, foreign language level exam score, and the total score of each candidate.
Only C programing Language
Question :
Engineering Faculty wants to employ research assistants. The information of the candidates who want to be employed as research assistants are written in the sequential access file (candidate.txt) by the registration office, respectively, name, surname, school graduation grade, Academic Personnel and Postgraduate Education Entrance Exam score and foreign language level exam score. All numerical information is being written as decimal numbers(float).
Engineering Faculty is to use that candidate.txt file to calculate the total scores of each candidate. When calculating the candidate's total score, 25% of the school graduation grade, 50% of the Academic Personnel and Postgraduate Education Entrance Exam score, and 25% of the language score are being taken into consideration.
Write a program that reads the entire candidate.txt file and calculates the total score of each candidate, prints the information of the candidates on the screen and writes the candidate who got the highest total score to a another sequential access text file. This new file should be in the this format; name, surname, school graduation grade, Academic Personnel and Postraduate Education Entrance Exam score, foreign language level exam score, and the total score of each candidate.
Notes:
1- The candidate.txt file will be given to you with the format shown below (you do not write any code to create it).
2- It is not known how many records there are in the candidate.txt file.candidate.txt file
Sample data in the candidate.txt file:
Ahmet Saglam 89.75 77.25 75.25
Mohammed Bashir 92.15 73.45 76.65
Maryam Hadeer 91.85 85.15 78.50
Selin Yildirim 89.25 89.35 71.75
...
The sample output of the program is shown given below.
Step by step
Solved in 3 steps with 1 images