2. (40 pnts) Read a "students.txt" file where in each line a name and surname is stored. Get from the user the score of
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
2. (40 pnts) Read a "students.txt" file where in each line a name and surname is stored. Get from the user the score of
2. (40 pnts) Read a "students.txt" file where in each line a name and surname is stored. Get from the user the score of each student and write the resulting grades to a "grades.txt" in tabular form. Use struct student { char str_name [20]; char str_surname [20]; int score; } to save read information. Sample run: C\work/lecturexyz taltrunk2021 2022\spring\introduction to computer programming i Mehmet Abidinoglu: 71 Anil Akbas: 73 Elif Akcayir: 71 Zehra Akdemir: 62 Mustafa Akkaya: 63 Ceren Akkus: 85 Kubilay Aksel: 84 Emre Asik: 81 Ilyas Aslan: 86 Process exited after 14.07 seconds with return value 8 Press any key to continue A view from the resulting "grades.txt": grades-Notepad File Edit Format View Help Mehmet Abidinoglu 71 Anil Akbas 73 Elif Akcayir T Zehra Akdemir Mustafa Akkaya Ceren Akkus Kubilay Aksel Emre Asik Ilyas Aslan ****** 71 62 63 85 84 81 86
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!