Assume that each of the following statements applies to the same program.
Write a statement that opens file oldmast.dat for input; use an ifstream object called inOldMaster.
Write a statement that opens file trans.dat for input; use an ifstream object called inTransaction.
Write a statement that opens file newmast.dat for output , use ofstream object outNewMaster.
Write a statement that reads a record from the file oldmast.dat. The record consists of integer accountNumber, string name and floating-point currentBalance; use ifstream object inOldMaster.