Question: Use Eclipse to create a new project with the name, say, Lab2. In the project create three new classes as Your implementation should include the

 Use Eclipse to create a new project with the name, say,Lab2. In the project create three new classes as Your implementation should

Use Eclipse to create a new project with the name, say, Lab2. In the project create three new classes as Your implementation should include the following 3 classes: 1) Pseudorandom.java - implements a class that generates pseudorandom numbers. You must use the principle of information hiding in your implementation (instance variables must be private Instance variables of the Pseudorandom class should be multiplier, increment, modulus, and seed (of type int) You need to implement the following methods (that are described in the projects 11 and 12) o constructor with initial seed, multiplier, increment, and modulus as parameters, o changeSeed(int new seed) o nextlnt0 that generates and returns a pseudorandom integer number o nextDouble0 that generates and returns a pseudorandom double number in the range [O.. 1) (project 12 from the textbook). Note that modulus must not be equal to 0 in order 2) TestPseudorandom.java - tests Pseudorandom class. It should prompt the user to enter initial 3) TestDistribution.java - determines distribution of numbers (project 13 from the textbook). It for nextlnt and nextDouble methods to work. values for seed, multiplier, increment, and modulus, and include test calls to all of the constructors and methods. should prompt the user to enter initial values for seed, multiplier, increment, and modulus, and output a table with numbers of occurrences for each range Use your TestDistribution class from project 13 to experiment with different values of the multiplier, increment, and modulus. Prepare a text file (*.txt file) which contains

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!