Write a method that asks for input for any number of student records. Student records include student first and last name, letter grade received, and year the course was taken. Write this information to a file called students.dat. Hint: Many students want to label the data they put into a file. If it is a data file (a file to store data that is not intended to be human-readable) the data does not need labels, you can just format it in a way that makes sense to the program to read it back in. Alternatively, you can add labels, but when reading the file, you may end up needing to ignore those labels in the program that reads the data. ****JAVA ONLY**** *p.s haven't learned the try method yet.
Write a method that asks for input for any number of student records. Student records include student first and last name, letter grade received, and year the course was taken. Write this information to a file called students.dat. Hint: Many students want to label the data they put into a file. If it is a data file (a file to store data that is not intended to be human-readable) the data does not need labels, you can just format it in a way that makes sense to the program to read it back in. Alternatively, you can add labels, but when reading the file, you may end up needing to ignore those labels in the program that reads the data. ****JAVA ONLY**** *p.s haven't learned the try method yet.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 7 images