Question: Task 2.3 Collection and File I/O In this task, you will use TO2_score.txt under the resources folder. The file contains the exam marks of some

 Task 2.3 Collection and File I/O In this task, you willuse TO2_score.txt under the resources folder. The file contains the exam marks

Task 2.3 Collection and File I/O In this task, you will use TO2_score.txt under the resources folder. The file contains the exam marks of some students. Write a program which can achieve the functions below: . The program loads the existing marks from scores.txt without overwriting the content in the file. The program prompts the user to input a student name (first name only) and his/her exam mark. The program then checks whether the mark of the student was recorded already. If the record is existing already, the program checks whether the user wants to overwrite the record. If so, the record will be overwritten; otherwise, prompt for the next input. The program will quit after the user inputs an "x". Hint: you need to use collections in this program, but please think about which type of collection is suitable. _ TO2_scores.txt - Notepad File Edit Format View Help Andy 60 Bob 87 Alice 59

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!