Question: DO NOT COPY CODE ALREADY ON CHEGG!!! Assignment 5 A store owner keeps a record of daily transactions in a text file. Each line contains

DO NOT COPY CODE ALREADY ON CHEGG!!!

 DO NOT COPY CODE ALREADY ON CHEGG!!! Assignment 5 A store

Assignment 5 A store owner keeps a record of daily transactions in a text file. Each line contains three items: The invoice number, the cash amount, and the letter P if the amount was paid or R if the amount was received. Items on each line are separated by spaces. Write a program that prompts the store owner for the amount of cash at the beginning of the day and for the amount of cash at the end of the day, as well as the name of the ledger text file. Your program should calculate if the actual amount of cash at the end of the day equals the expected value. If an error is found while reading the text file, the user should be allowed to choose another file. Call your program BalanceTransactions.java Use a transactions.txt file with the following lines: 10001 56.67 P 10002 23.67 R 10003 99.50 R 10004 10.95 P Follow all directions in the COP3337 Class Rules for Submitting Programs. Please use the file> export> to zip option in NetBeans. The zip file should be named FirstNameLastNameA5.zip

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!