You will write two functions that a network designer could use: one names the direction of a link, the other finds the ideal time to send some bits.
Your tasks.
direction, return "simplex" if the receiver never sends back. Otherwise return "full-duplex" if both sides can send at the same time, and "half-duplex" if they must take turns.ideal_time, return the time in seconds to send bits bits when each of wires wires carries rate bits per second.faster to how many times faster parallel wires are than serial wire, in theory. Use ideal_time twice.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…