Question: ( 1 ) Create a default Constructor. Set the seed value for your random number generator inside the Constructor. The seed value will be assigned
Create a default Constructor. Set the seed value for your random number generator inside the Constructor. The seed value will be assigned to you.
Create a private method "generateRandomInt" that returns a new integer value between and
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
iv
v Customer Name
Customer List
vi Custoner Nane
Total Amount
vii. JohnSmith
viii. JaneDoe
Total Amount
$
$
George washington $
CaptainKirk $
Total Customers:
Total Amount: $
Create a "displayHistogram" method that generates a transaction count report
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
