Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 2 3 4 5 6 2 . ( 1 ) Define a private static field to keep track of a Customer ID . This
Define a private static field to keep track of a Customer ID This Customer ID will be unique for all customers read from the file and will be calculated each time a new customer is added. The initial value should be
Define a constant variable with a value of for the maximum array size.
Define a static variable to keep track of the number of customers.
Define arrays for the Customer Name, Customer ID Total Amount and Transaction Count.
Define a Random object. You will need to import the java.util.Random package.
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
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