Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

out References Mailings Review View Help You will need to create a Main program and a Customer class. There will be two separate files required

out References Mailings Review View Help
You will need to create a Main program and a Customer class. There will be two separate files required to be created and tested.
The random number generator will require a seed value. Please find your seed value from this list." 121
(2) Create a Class named as your last name + Class. For example, mine would be JeanLouisClass.
(1) 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 10000.
(1) Define a constant variable with a value of 50 for the maximum array size.
(1) Define a static variable to keep track of the number of customers.
(4) Define arrays for the Customer Name, Customer ID, Total
Amount and Transaction Count.
(1) Define a Random object. You will need to import the java util.Random package.
(1) Create a default Constructor. Set the seed value for your random number generator inside the Constructor. The seed value will be assigned to you.
(3) Create a private method "generateRandomInt" that returns a new integer value between 0 and 100.
(5) Create a "createCustomer" method that will accept the Customer
: On
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

Mastering Apache Cassandra 3 X An Expert Guide To Improving Database Scalability And Availability Without Compromising Performance

Authors: Aaron Ploetz ,Tejaswi Malepati ,Nishant Neeraj

3rd Edition

1789131499, 978-1789131499

More Books

Students also viewed these Databases questions

Question

d. How were you expected to contribute to family life?

Answered: 1 week ago