Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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