Question
do the coding in java Create a package called assignment2, which will contain two files, one called FileMaxMin.java and the other TimeSymbolTables.java. Details on these
do the coding in java
Create a package called assignment2, which will contain two files, one called FileMaxMin.java and the other TimeSymbolTables.java. Details on these programs appears below.
Maximum and minimum integers in a file
Write a program called FileMaxMin that reads a file containing integers, for example, the file at the pathname data/100ints.txt, and finds and prints the smallest and largest values in the file.
Grading rubric
The program is worth 10 points, 5 for creating and filling the array correctly and 5 for computing and printing the max and min correctly. A program that doesn't compile or that compiles and then crashes will be given 0 points.
Timing symbol table implementations
Write a program called TimeSymbolTables that creates two symbol tables, one created with the class SequentialSearchST in the package algs31 and one created with the class BST in the package algs32. Each symbol table will contain as a key a word read from a text file and as a value the number of times that word occurs in the text file. Have the program fill the first symbol table with these counts, keeping track of how long that takes using a Stopwatch object, found in the stdlib package. It then does the same thing with the second symbol table. Finally, it prints out how long it took to fill each symbol table.
Grading rubric
The program is worth 15 points, 10 for creating and filling the symbol tables correctly and 5 for computing and printing the times. A program that doesn't compile or that compiles and then crashes will be given 0 points.
Submission instructions
In your file system, navigate to the directory assignment2 containing the Eclipse package. For example, I have a directory for the class called csc301 where I've placed my Eclipse workspace. A relative pathname for this directory would be csc301\workspace\algs4\src\assignment2. Create a zip file called assignment2.zip of just that directory and the files in it, that is, zip the assignment2 directory (and not something higher in the file system!). Submit that zip file to the D2L submission folder for it.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started