Answered step by step
Verified Expert Solution
Question
1 Approved Answer
this must be done using java Question two: Consider a system connected as shown in the figure below. 1. System 51 generates a random number
this must be done using java
Question two: Consider a system connected as shown in the figure below. 1. System 51 generates a random number (R1) between 0 and 10 and sends it to 52. 2. System S2 generates a random number (R2) between 0 and 10 and sends the value R1+R2 to 53. 3. System 53 generates a random number (R3) between 0 and 10 and sends the value R1+R2 R3 to 54 4. System 54 generates a random number (R4) between 0 and 10 and sends the value R1+R2+R3 to 51 5. If the value received by 51 is less than 30 and more than 25 then stop the system as follows a. 51 sends the word "stop" to 52. b. s2 send the word stop to 53 and closes all sockets and I/O ports and C. 53 send the word stop to 54 and closes all sockets and I/O ports and d. 54 send the word stop to 51 and closes all sockets and I/O ports and e. Si closes all sockets and 10 ports f. 51 prints the final value received at 51 (R1+R2+R3+R4) g. S1 prints the number of times the process was repeated 6. If the value received by 51 is more than 30 or less than 25 then repeat the process starting at point 1 above. R1 R2 R1 si Complete the cycle Compute XR1+R2+R3+R4 R1+R2 R3 R4 R1+R2 Yes NO 25Step 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