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 startinglearning programming+ java, so it is kind difficult to me to solve

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 to me to solve and get the correct results of this. If you make a comment before making each part, I will appreciate it. (EX. //methods for ... ).

THANK YOU FOR YOUR HELP AND PATIENCE!

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 file appropriately to manage this library. Part 1 [5 points) Create base class called RandomVariable in a class file called Random Variable.java. This class should have the following fields/methods: Two fields - double mean double variance One constructor - accepts no arguments initializes mean and variance to 0 One method called print Summary - accepts no arguments prints to the screen "Random Variable Summary Information:" with a newline at the end of the statement Part 2 Create a class called DiscreteRandom Variable in a class file called DiscreteRandom Vari- able.java that extends the class Random Variable. This class should have the following field- s/methods: No fields One constructor - accepts no arguments - initializes mean and variance to O 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: Discrete" with a newline at the end of the statement Part 3 Create a class called ContinuousRandom Variable in a class file called ContinuousRandom- Variable.java that extends the class Random Variable. This class should have the following fields/methods: No fields One constructor - accepts no arguments initializes mean and variance to 0 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

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!