Question: Write a program that creates a database text file (student.txt) containing students information of last name, first names and student ID. First, the program creates
Write a program that creates a database text file (student.txt) containing students information of last name, first names and student ID. First, the program creates the file. Then, the program asks how many records the user will enter. Next, the program asks the user to enter the a record; age, last name, first name and student ID, which is store in a single line of the file. Use the table below to enter those three records when running the program.
Finally, the program will test the database opening the file again just to print from the file the records just created. Include in the source code comments specifying the programs tasks, (python programm)
| Age | Last Name | First Name | Student ID |
| 21 | Long | Mary | 172345 |
| 33 | Smith | John | 94388 |
| 26 | Murray | Paul | 51287 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
