Menu

Java Csv File Help Input File Named Bandwidthcsv Containing Bandwidth Information Set Netw Q43783432

Java CSV file help

Input

  • A file named “bandwidth.csv”, containing the Bandwidthinformation for a set of Network Interfaces. A Network Interface isidentified by the couple [server, network interface name]
  • A file named “netbitrate.csv”, containing the NetworkBit Rate registered for the same set of Network Interfaces over aperiod. A Network Interface is identified by the couple [server,network interface name]

You are asked to develop a small procedure that, given the twoCSV files, calculates the Network Bandwidth Utilization for everyline in the “netbitrate.csv” file. The Network BandwidthUtilization of an interface is calculated as the Network Bit Ratedivided by its Bandwidth. The procedure needs to print the resultson the standard output according to the following format:

Timestamp | Server | Network Interface | Network bit rate /Bandwidth

Hint: Please ensure that your solution considers floatingpoint numbers

File: “bandwidth.csv”

Server, InterfaceName, Bandwidth

server1,eth0,10

server1,eth1,20

server2,eth0,10

File: “netbitrate.csv”

Timestamp, Server, InterfaceName, NetBitRate

2019-07-08 21:53:27,server1,eth1,100

2019-07-06 23:10:54,server1,eth0,200

2019-05-10 03:36:22,server2,eth0,150

2019-01-14 13:14:51,server2,eth0,50

2019-05-01 19:47:33,server1,eth1,80

output:

2019-07-08 21:53:27 serveri ethi 5.0 2019-07-06 23:10:54 serverl etho 20.0 2019-05-10 03:36:22 server2 etho 15.0 2019-01-14 1

2019-07-08 21:53:27 serveri ethi 5.0 2019-07-06 23:10:54 serverl etho 20.0 2019-05-10 03:36:22 server2 etho 15.0 2019-01-14 13:14:51 server2 etho 5.0 2019-05-01 19:47:33 serverl ethi 4.0 Show transcribed image text 2019-07-08 21:53:27 serveri ethi 5.0 2019-07-06 23:10:54 serverl etho 20.0 2019-05-10 03:36:22 server2 etho 15.0 2019-01-14 13:14:51 server2 etho 5.0 2019-05-01 19:47:33 serverl ethi 4.0

Expert Answer


Answer to Java CSV file help Input A file named “bandwidth.csv”, containing the Bandwidth information for a set of Network Int…

OR