The SwissArmyKnife (sak) project is an assignment to create a command line application that can be utilized as a "sandbox" environment to work on new features before you add them to more sophisticated...

The SwissArmyKnife (sak) project is an assignment to create a command line application that can be utilized as a "sandbox" environment to work on new features before you add them to more sophisticated applications. In this assignment we are going to create the main application, add a few features to establish how it can be extended, and then implement a couple interesting more complex features to get a feel for how it can be utilized. Requirements: 1.The name of your main Java file must be sak.java (short for SwissArmyKnife), the application must compile by executing “javac *.java”, and run with “java sak”. All files need to compile and run the application must be included in the zip file that you submitted. You should not submit extraneous files (i.e. .class files) or files in sub-directories in the zip file. Finally, the zip file should be names "sak_xxx.zip" were "xxx" are your initials in lower case. 2. Each class that you create should be implemented in a separate Java file where the name of the file is your class name dot java. For example if we created a class named "HttpRequest" the class should be placed in a file named "HttpRequest.java". Note that capitalization is important and that we are using CamelCase notation with the first letter of classes being capitalized. This is sometimes described as UpperCamelCase. 3.Your command line application should support the following command line arguments/functions: -Help -HttpRequest [URL] -HttpRequestIndex [URL] Command line arguments should be case insensitive. If the application is executed without parameters, the application should execute the "-Help" function and exit. And finally, no matter what command is executed, the application should list the function being executed before it executes the function and list the total time elapsed at with the function is complete. 4.The "Help" function should display a series of user-friendly messages to the command prompt describing how the application and each of its functions work. It should also provide "copy/paste" examples of commands that can be executed. 5.The "HTTPRequest" function should be implemented as a class that provides at least one method that takes a URL as input and stores the data from that URL in an ArrayList of Strings. 6.The "HTTPRequestIndex" function should take a URL as an input parameter, open JSON referenced by the URL, parse the file for additional URLs, make an HTTP request to get each of the files identified in the file, and print the results of each of the additional URLs to the console. 6.
Jan 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here