Question
JAVA: Since the job of this program is to store and audit transactions, lets discuss how those transactions will be submitted and stored within our
JAVA: Since the job of this program is to store and audit transactions, lets discuss how those transactions will be submitted and stored within our program. Groups of transactions will be submitted together, and each of these groups will be represented by a perfectly sized array of primitive integers (perfect size vs oversize arrays). Well see later that the encoding of these integers may vary from one group of transactions to the next, and so keeping track of each group of transactions as distinct from the others will be important. The collection of these groups of transactions will be represented by an oversize array of transaction groups (or of perfect size integer arrays).
The first method that we will implement adds a perfectly sized array of transactions into an oversize array of perfect size integer arrays. The signature and behavior of this method must exactly match the following:
After implementing this method, you should create a file with an empty class definition named AuditableBankingTests.
* Adds a transaction group to an array of transaction groups. If the alTransactions array is already full then this method will do nothing other than return allTransactionCount. 5*@param newTransactions is the new transaction group being added (perfect size) 6@param allTransactions is the collection that newTransactions is being added to Coversize) 7@param alLTransactionsCount is the number of transaction groups within allTransactions (before newTransactions is added 9@return the number of transaction groups within allTransactions after newTransactions is added. 10 */ 11 public static int submitTransactions(int newTransactions, int1 allTransactions, int allTransactionsCount) t 13 14 return -1; 153
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