Question
Write an application which will write five student ID numbers and GPAs to a rw file called Stu.dat and then allow you to display the
Directions
Import the classes necessary to support your application.
Create a class called ReadWrite. This class has no properties or behaviors.
Create a main method which will include the following:
Add an appropriate throws statement in the main method.
Create a reference to a text file called Stu.dat with rw access.
Include try and catch blocks for exception handling.
Use a loop to interactively assign student ID numbers and their GPA scores.
With the use of a second loop, display the GPA for specific student ID numbers.
Use a sentinel to determine when you wish to stop the program.
Include a finally block within your program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started