Question: In this question you will be asked to write java code that allows you to read two CSV files that represent the problem in the

In this question you will be asked to write java code that allows you to read two CSV files that represent the problem in the previous question. More specifically, you are given two files. One file is "libraries.csv", which has a list of the library names that you need to install, which looks like this (see example attached): library NumPy SciPy Pandas Matplotlib TensorFlow libraries.csv Note that "library" is simply the column name (in this case there is only one column). This specific file simply means that you need to install 5 libraries: NumPy, SciPu, ... etc. The second file, "dependencies.csv", contains the dependencies between the libraries that need to be installed, which looks like this: dependentLibrary,neededLibrary TensorFlow,SciPy Matplotlib,NumPy Pandas,SciPy TensorFlow,Matplotlib Matplotlib,Pandas dependencies.csv The first column indicates the dependent library, while the second column is the needed library. In this example, you will need to install Scipy before installing TensorFlow, and install NumPy before installing Matplotlip, ...etc. You need to write an efficient java program that: read both library.csv and dependencies files implement function "getNumberOfDepencies(String libraryName)" which returns how many times a particular library was needed implement function "dependencyExists( Dependency depend )" which returns whether a dependency relationship exists. You will need to modify the Dependency class (attached) so you can use it as a hashtable key Dependency.java Note that your code need to be generic enough to work with bigger libraries.csv and dependencies.csv files and need to be as efficient as possible when it comes to complexity.

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!