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 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 Maryam Hadeer 91.85 85.15 78.50 total - 85.16 Selin Yildirim 89.25 89.35 71.75 total - 84.93 78.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 . ..

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

please use c

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 gre 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: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 gre 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 . . .
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY