Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A ) v v v v Document 1 - Compatibility Mode - . - Maud Jean Louis Layout References Mailings Review View Help 1 1
A
Document Compatibility Mode
Maud Jean Louis
Layout References Mailings Review View Help
Create a "getCustomerIndex" 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
ii Column is left justified with a minimum of characters, and will display the Customer Name
iii. Column is right justified with a minimum of characters, and will display the Total Amount to two decimal place Create a "displayHistorgram" method that generates a transaction count report
The title is right justified with a minimum of characters
Each name is right justified with a minimum of
characters. Include the customer ID number.
For each transaction, print an asterisk
Accessibility: Good to go
Focus
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