Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 statementStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started