Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java code please you will be taking an input le name from the command line. Inadditiontotheinputle,the second command-line argument will be a commandtorun on the

Java code pleaseimage text in transcribed you will be taking an input le name from the command line. Inadditiontotheinputle,the second command-line argument will be a commandtorun on the data from your input le. The commands consist of CATCOUNT and LOCATIONS. If an unknown command is provided, the program should print the message: Invalid Command Each command will be most easily implemented with a HashMap. Therefore, your implementation will read in the csv le and be using one or more HashMaps. CATCOUNT - This command reads an input le and for each job Category prints out the category and the number of jobs in that category. LOCATIONS - For a given category, list the locations that have a position in that category open. Each location will be followed by a number indicating how many positions in that category are open in a particular location.image text in transcribed

List sortedKeys = new ArrayList(mymap.keySet()); Collections.sort(sortedKeys)

Should use only static methods. add a note: how to use your program and what an input le would look like.

Overview The goal of this assignment is to learn how to use the dictionary abstract data type in Java, sorting on lists, and to continue practice reading parameters in from the command line (Eclipse has an interface for providing command-line options to a Java program, see Run As -> Run Configurations > Arguments). In Java, a HashMap implements a dictionary. By the end of the assignment you will have practiced using the following operations on a HashMap: insertion modifying the value for a particular key iterating over all of the key, value pairs the fact that HashMaps do NOT store their key, value pairs in order and how to handle it Input and Output Example input (see Kaggle for more in-depth description). The cutoff word below is "Qualifications". Company, Title, Category, Location, Responsibilities, Minimum Qualifications, Preferred Qualific Google,TitleA, Categoryx, Tel Aviv, Everything and the rest, BS, MS Google,Titleb, CategoryX, Tel Aviv, Everything and the rest, BS, MS Google, TitleB, Categoryy, Houston, Everything and the rest, BS, MS Google,Titlec, CategoryX, Jonesboro, Everything and the rest, BS, MS Output for command line arguments 'CATCOUNT' Number of positions for each category CategoryX, 3 CategoryY, 1 Output for command line arguments LOCATIONS CategoryX' LOCATIONS for category: CategoryX Jonesboro, 1 Tel Aviv, 2 Overview The goal of this assignment is to learn how to use the dictionary abstract data type in Java, sorting on lists, and to continue practice reading parameters in from the command line (Eclipse has an interface for providing command-line options to a Java program, see Run As -> Run Configurations > Arguments). In Java, a HashMap implements a dictionary. By the end of the assignment you will have practiced using the following operations on a HashMap: insertion modifying the value for a particular key iterating over all of the key, value pairs the fact that HashMaps do NOT store their key, value pairs in order and how to handle it Input and Output Example input (see Kaggle for more in-depth description). The cutoff word below is "Qualifications". Company, Title, Category, Location, Responsibilities, Minimum Qualifications, Preferred Qualific Google,TitleA, Categoryx, Tel Aviv, Everything and the rest, BS, MS Google,Titleb, CategoryX, Tel Aviv, Everything and the rest, BS, MS Google, TitleB, Categoryy, Houston, Everything and the rest, BS, MS Google,Titlec, CategoryX, Jonesboro, Everything and the rest, BS, MS Output for command line arguments 'CATCOUNT' Number of positions for each category CategoryX, 3 CategoryY, 1 Output for command line arguments LOCATIONS CategoryX' LOCATIONS for category: CategoryX Jonesboro, 1 Tel Aviv, 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions

Question

If none of the solutions seem satisfying, pick the more easier one.

Answered: 1 week ago

Question

You are to meet him on friday at the un building in nyc.

Answered: 1 week ago