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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Topic Video
Question

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.

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
Transcribed Image Text: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
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education