Answered step by step
Verified Expert Solution
Link Copied!

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 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
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

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions

Question

Prepare an ID card of the continent Antarctica?

Answered: 1 week ago

Question

What do you understand by Mendeleev's periodic table

Answered: 1 week ago

Question

=+2 How does the preparation and support for each type of IE vary?

Answered: 1 week ago

Question

=+What is the extent of the use of each type of IE?

Answered: 1 week ago