Answered step by step
Verified Expert Solution
Link Copied!

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)vvvv
Document1- Compatibility Mode -.-
Maud Jean Louis
Layout References Mailings Review View Help
11.)(3) Create a "getCustomerIndex" private method to return the index in the array of the Customer Name. If the Customer ID is not found, return -1.
12.)(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
13.)(5) Create a "displayCustomerList" method that generates a summary report
i. The title is right justified with a minimum of 32 characters
ii. Column 1 is left justified with a minimum of 25 characters, and will display the Customer Name
iii. Column 2 is right justified with a minimum of 23 characters, and will display the Total Amount to two decimal place14.)(5) Create a "displayHistorgram" method that generates a transaction count report
The title is right justified with a minimum of 32 characters
Each name is right justified with a minimum of 27
characters. Include the customer ID number.
For each transaction, print an asterisk *.
Accessibility: Good to go
Focus
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications Dasfaa 2023 International Workshops Bdms 2023 Bdqm 2023 Gdma 2023 Bundlers 2023 Tianjin China April 17 20 2023 Proceedings Lncs 13922

Authors: Amr El Abbadi ,Gillian Dobbie ,Zhiyong Feng ,Lu Chen ,Xiaohui Tao ,Yingxia Shao ,Hongzhi Yin

1st Edition

3031354141, 978-3031354144

More Books

Students also viewed these Databases questions