Question: E Challenge Editor Java Default Key Bindings Network Bandwidth Programming challenge description: Given a measured file transfer time in seconds and file size in mebibytes

 E Challenge Editor Java Default Key Bindings Network Bandwidth Programming challenge

E Challenge Editor Java Default Key Bindings Network Bandwidth Programming challenge description: Given a measured file transfer time in seconds and file size in mebibytes (MiB) write a program to calculate the network's bandwidth in Megabits per second (Mb/s). Assume that all network capacity is used for the file data transfer, there is no overhead, loss, congestion, or contention. 1 import java.io.BufferedReader; 2 import java.io.IOException; 3 import java.io.InputStreamReader; 4 import java.nio.charset. Standardcharsets; 5 6 public class Main { 7 8 * Iterate through each line of input. 9 10 public static void main(String[] args) throws IOException { 11 InputStreamReader reader - new InputStreamReader(System.in, Standardcharsets.UTF_8); 12 Buffered Reader in = new Buffered Reader (reader); 13 String line; 14 while ((line - in.readLine()) != null) { 15 System.out.println(line); 16 } 17 } 18 } Input: Two space-delimited positive integers: 1. File size in MiB 2. Transfer time in seconds For example: 488 336 Output: : Print an integer number that is the network's bandwidth in Mb/s. Round the calculated real value up to the smallest integer that is not less than the result. For the example above, the output would be: 10 Test 1 Test Input 400 336 >_ Test Case Output Run 1 Expected Output 10 Running test cases... Done Test i X Failed Test 2 Test Input: 400 336 Test Input il Expected Output: 10 Expected Output Your Output: 9 400 336

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!