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 vv
Maud Jean Louis
MJ
Layout References Mailings Review View Help
Comments
1
2
3
5
6
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 0. Set transaction count to 0. Increase the customer count by 1.
2.)(3) Create a "validateCustomer" method to check if the Customer Name already exists in the array. Return true or false.
(3) Create a "getCustomerlndex" private method to return the index in the array of the Customer Name. If the Customer ID is not found, return -1.
4.)(5) 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 1 if successful. Valid Transaction Types are:
i. credit - increases total amount
ii. debit - decreases total amount
(5) Create a "displayCustomerList" method that generates a summary report
i. The title is right justified with a minimum of 32 characters
 A lab project import C... Saved vv Maud Jean Louis MJ

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!