Question: A lab project import C . . . Saved v v Maud Jean Louis MJ Layout References Mailings Review View Help Comments 1 2 3
A
lab project import
C
Saved
Maud Jean Louis
MJ
Layout References Mailings Review View Help
Comments
Create a "createCustomer" method that will accept the Customer Name as a parameter and store the name in the name array. Call the "generateRandomInt" method and increase the Customer ID by that value and store that in the Customer ID array. Set the initial value for Total Amount to Set transaction count to Increase the customer count by
Create a "validateCustomer" method to check if the Customer Name already exists in the array. Return true or false.
Create a "getCustomerlndex" private method to return the index in the array of the Customer Name. If the Customer ID is not found, return
Create an "updateTransaction" method to accept a Customer Name, Transaction Type and Amount as parameter, and update the Total Amount. Print a message for a successful or unsuccessful transaction. Increase transaction count by if successful. Valid Transaction Types are:
i credit increases total amount
ii debit decreases total amount
Create a "displayCustomerList" method that generates a summary report
i The title is right justified with a minimum of characters
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
