a) Write a statement that opens file "newmast.txt" for output (and creation)—use formatter
variable outNewMaster.
b) Write the statements needed to read a record from the file "trans.txt". The record is
an object of class TransactionRecord—use Scanner variable inTransaction. Assume
that class TransactionRecord contains method setAccount (which takes an int) to set
the account number and method setAmount (which takes a double) to set the amount
of the transaction.
c) Write a statement that outputs a record to the file "newmast.txt". The record is an object
of type Account—use Formatter variable outNewMaster.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here