Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

Students also viewed these Databases questions

Question

What were the reasons for your conversion or resistance?

Answered: 1 week ago