Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
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