Answered step by step
Verified Expert Solution
Link Copied!

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

1
2
3
4
5
6
2.(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.
3.(1) Define a constant variable with a value of 50 for the maximum array size.
4.(1) Define a static variable to keep track of the number of customers.
5.(4) Define arrays for the Customer Name, Customer ID, Total Amount and Transaction Count.
6.(1) Define a Random object. You will need to import the java.util.Random package.
7.(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.
8.(3) Create a private method "generateRandomint" that returns a new integer value between 0 and 100.
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_2

Step: 3

blur-text-image_3

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions