Answer:
user_string = input("Input a string : ")
output = user_string.isnumeric()
if output == True:
print("yes")
else:
print("no")
Explanation:
- First of all check whether user input have all numeric value or not
.
- Display yes if string contain all numeric values
.
- Display no if string contain at least one non - integer character
.
Answer:
The answer is below
Explanation:
Given that:
Frame transmission time (X) = 40 ms
Requests = 50 requests/sec, Therefore the arrival rate for frame (G) = 50 request * 40 ms = 2 request
a) Probability that there is success on the first attempt =
but k = 0, therefore Probability that there is success on the first attempt = 
b) probability of exactly k collisions and then a success = P(collisions in k attempts) × P(success in k+1 attempt)
P(collisions in k attempts) = [1-Probability that there is success on the first attempt]^k = ![[1-e^{-G}]^k=[1-0.135]^k=0.865^k](https://tex.z-dn.net/?f=%5B1-e%5E%7B-G%7D%5D%5Ek%3D%5B1-0.135%5D%5Ek%3D0.865%5Ek)
P(success in k+1 attempt) = 
Probability of exactly k collisions and then a success = 
c) Expected number of transmission attempts needed = probability of success in k transmission = 
Answer:
Import java.awt.*;
import java.util.*;
public class Sprhere
{// Instance Data private double surfaceA, volume, r, diameter; //Constructors public Sphere ()
{r = 0;diameter = 0; surfaceA = 0;volume = 0;}
public Sphere (double radius, double d, double SA, double v)
{this. r = radius; this. diameter = d; this. surfaceA = SA;this.volume = v;}
//--------------------------------------------------------------------// Accesors.//--------------------------------------------------------------------public double get Radius()
{return r;}
public double get Diameter()
{return diameter;}
public double get SurfaceA()
{return surfaceA;}
public double get Volume()
{return volume;}
//--------------------------------------------------------------------// Mutators.//--------------------------------------------------------------------
Answer:
The TCP/IP is the transmission control protocol and internet protocol and in the TCP/IP model the transport layer is the second layer.
The primary responsibility of this layer is that it is basically used to deliver messages to the host and that is why it is known as end to end layer.
It basically provide the point to point connection between the destination to server host for delivering the various types of the services efficiently and reliably.
In the TCP/IP model the transport layer are basically responsible for transferring the data or service error free between the server to destination host.