Write a single program for checking the integrity of a data file that contains f
ID: 3637848 • Letter: W
Question
Write a single program for checking the integrity of a data file that contains financial transactions. Your program will:Use a GUI file chooser to ask the user to select a financial data file.
Read through the selected file once only, checking the arithmetic of the financial summaries. (See details below.)
Report the results to the user in a single dialog box:
If the file cannot be read, display an appropriate error message.
If the file has no arithmetic errors, an appropriate message is displayed.
If the file has an error, display a message indicating the date of the incorrect financial summary, the incorrect summary dollar amount, and the correct amount. You should assume that there is only a single error in each file.
Terminate the application after the results are shown.
Your messages must be user friendly (full English sentences, etc.). You may use the console for debugging output, but your application must use GUI components to communicate with the user. Your application must not abruptly terminate due to an exception under any conditions. Your application must be within a single .java file, and may only use local variables for storage (no arrays or data structures, only relevant for advanced programmers).
Finally, the rules for commenting, formatting, and program structure remain in place. Also, all methods must have well-written method contracts immediately above them in JavaDoc comments.
Explanation / Answer
its easy
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.