Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I'm trying to find the average of the random number in java. at this moment i'm printing the random number, what i want is to
I'm trying to find the average of the random number in java. at this moment i'm printing the random number, what i want is to sum all of the observations, and divide by the quantity of them. and then print them. and if the random number exceeds 8, print warning. the problem in my output is that it doesn't print the average. and doesn't detect the exceeded number correctly as you can see in the last figure. Thank you.
1)
2)
3)
4)
5)
30 import java.util.0bservable; 6 public abstract class A implements Observer 7 8 public 8 public abstract String dispO; A10 public abstract void update(Observable subject, 0bject o); 12 13Step 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