Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hide Assignment Information Instructions Programming labs are practical exercises. The instructor will typically kick off these exercises by demonstrating how to start these and build
Hide Assignment Information
Instructions
Programming labs are practical exercises. The instructor will typically kick off these exercises by demonstrating how to start these and build up a design in class. The student is then responsible for continuing the work and completing the lab and testing the final applications complete functionality.
Students must then place the following in a single zip or zip file with the name format as given in the lab assignment:
All their source files or entire IDE project directory which must include source files
One or more screenshots of the application running
Part
Create a java class FileHandler in a program that reads and writes grades data from a text file on disk and performs some simple calculations on that data in the following ways: Use a looping repetition construct that allows the user to enter as much grade data as possible with a sentinel to end the loop and write the data to disk and close the file.
Use a second looping construct that allows the user to open and read a disk file and retrieve grades from it
Part
Use the class you created in Part and write grades into a text file and close the file. Open the file using your class functions and read the grade data into a simple data structure of your choosing and then calculate the GPA and print of the data in a nicely formatted command line display. Use the following gradeGPA allocations:
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