Given: A Fiber Link with length of 800 km, bandwidth of 1 Gbps, and speed of medium/light of 200,000 km/sec.Write a short Python program to calculate the propagation delay of a link. You need to ask the user to enter the link length and the medium speed. Show the program/code and an example of the output

Respuesta :

Answer:

Written in Python

linklength = float(input("Link Length: "))

mediumspeed = float(input("Medium Speed: "))

prop = linklength/mediumspeed

print("Propagation Delay: "+str(prop))

Explanation:

The next two lines prompt user for input

linklength = float(input("Link Length: "))

mediumspeed = float(input("Medium Speed: "))

This line calculates the propagation delay

prop = linklength/mediumspeed

This line prints the calculated propagation delay

print("Propagation Delay: "+str(prop))

See attachment for program output

Ver imagen MrRoyal