Write a complete program that will open file and read all records. While reading file, your program will calculate the average grade of student (using midterm and final) and show on screen only the ones who increased their grades (from midterm to final) but could't manage to pass 50 on grade average. While showing the student data on screen, do not show the complete record. For the students that will be listed on screen, only registration year (only with two digits) and then a space, and name will be shown. Finally, at the end of the list, you will write the count number of list. You can see an output example below, 17 Sherry 16 Shandy 16 Cape 17 Sabai 4

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
We have a text file with name "Data.txt". Assume, this text file is located under working directory of your source code. In given file we have student records and we don't know how
many records we have. For each student, first field is "Student Number", second field is "Name", third field is "Surname", fourth field is "Midterm Mark", and fifth field is "Final Mark".
For "Student Number", first two digits shows the registration year (like your student number). Midterm percentage is 40% and Final percentage is 60%. Structure of file is given below,
Data.txt
10
characters
20
characters
20
characters
4
4.
chr
chr
171732204 Anejo
171732208 Sherry
Highball
67
71
Adonis
38
45
181732014 Arnold
Palmer
74
84
191732011 Bramble
Gin
46
70
161732034 Shandy
Beer
64
56
18172
Jewel
78
Осean
56
Codder
Jalallbanger
Write a complete program that will open file and read all records. While reading file, your program will calculate the average grade of student (using midterm and final) and show on
screen only the ones who increased their grades (from midterm to final) but could't manage to pass 50 on grade average.
While showing the student data on screen, do not show the complete record. For the students that will be listed on screen, only registration year (only with two digits) and then a
space, and name will be shown. Finally, at the end of the list, you will write the count number of list. You can see an output example below,
17 Sherry
16 Shandy
16 Cape
17 Sabai
4
Transcribed Image Text:We have a text file with name "Data.txt". Assume, this text file is located under working directory of your source code. In given file we have student records and we don't know how many records we have. For each student, first field is "Student Number", second field is "Name", third field is "Surname", fourth field is "Midterm Mark", and fifth field is "Final Mark". For "Student Number", first two digits shows the registration year (like your student number). Midterm percentage is 40% and Final percentage is 60%. Structure of file is given below, Data.txt 10 characters 20 characters 20 characters 4 4. chr chr 171732204 Anejo 171732208 Sherry Highball 67 71 Adonis 38 45 181732014 Arnold Palmer 74 84 191732011 Bramble Gin 46 70 161732034 Shandy Beer 64 56 18172 Jewel 78 Осean 56 Codder Jalallbanger Write a complete program that will open file and read all records. While reading file, your program will calculate the average grade of student (using midterm and final) and show on screen only the ones who increased their grades (from midterm to final) but could't manage to pass 50 on grade average. While showing the student data on screen, do not show the complete record. For the students that will be listed on screen, only registration year (only with two digits) and then a space, and name will be shown. Finally, at the end of the list, you will write the count number of list. You can see an output example below, 17 Sherry 16 Shandy 16 Cape 17 Sabai 4
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

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