Question: This is using java (INTELLI J) and Gradle. I will appreciate if you can help me to solve those problems. I am starting learning programming+

 This is using java (INTELLI J) and Gradle. I will appreciateif you can help me to solve those problems. I am starting

This is using java (INTELLI J) and Gradle. I will appreciate if you can help me to solve those problems. I am starting learning programming+ java, so it is kind difficult for me to solve and get the correct results of this.

****PLEASE, If you make a comment before making each part, I will appreciate it. (EX. //methods for ... ). It will help me to understand and follow what you are writing and doing.

Note that you may need to use methods from an external library to complete parts of this assignment. Be sure and modify your build.gradle le appropriately to manage this library

THANK YOU FOR YOUR HELP AND PATIENCE!

Part 4 Create a class called ExponentialRandom Variable in a class file called ExponentialRandom- Variable.java that extends the class ContinuousRandom Variable. This class should have the following fields/methods: One field - double lambda One method called get Mean() - accepts no arguments - returns a double calculates and returns the mean for an exponential random variable with param- eter lambda using the following equation: E[X] = lambda where X is an exponential random variable One method called get Variance - accepts no arguments - returns a double - calculates and returns the variance for an exponential random variable with pa- rameter lambda using the following equation: Default constructor - accepts no arguments - returns nothing - initializes lambda to 0 sets mean to its correct value by calling getMean() - sets variance to its correct value by calling get Variance() Parameterized constructor accepts one double as an argument - returns nothing initializes lambda to value passed to the constructor - sets mean to its correct value by calling getMean() sets variance to its correct value by calling get Variance One method that overrides printSummary - accepts no arguments prints to the screen Random Variable Summary Information:" with a newline at the end of the statement prints to the screen "Random Variable Type: Continuous" with a newline at the end of the statement prints to the screen "Distribution: Exponential " (with replaced by the value in the field lambda) with a newline at the end of the statement prints to the screen "Mean: u" (with y replaced by the value in the field mean) with a newline at the end of the statement prints to the screen "Variance: 02" (with oreplaced by the value in the field variance) with a newline at the end of the statement

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!