Only C programing Language Attention : Your answer file name will be your school number-Q1.cpp (ex: 190201231-Q1.cpp) 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
Only C programing Language
Attention : Your answer file name will be your school number-Q1.cpp (ex: 190201231-Q1.cpp)
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
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.
![Ahmet Saglam 89.75 77.25 75.25 total = 79.88
Mohammed Bashir 92.15 73.45 76.65 total = 78.93
Maryam Hadeer 91.85 85.15 78.50 total - 85.16
Selin Yildirim 89.25 89.35 71.75 total = 84.93
Number of candidates 4
Max1 Total - 85.16, Maryam Hadeer 91.85 85.15 78.50
Process exited after 0.02398 seconds with return value 0
Press any key to continue](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F229fb740-b940-458f-a3e1-8d665cbd7eda%2F9e77c200-3d6b-4377-b3a3-ef8670b00cd7%2F9zfv9pf_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)