Reference no: EM132254255
Your task is to write methods in JAVA for a program that analyzes an arbitrary number of strings passed as arguments on the command line. Like with many large projects, some of the code has been written for you, and you are not allowed to change it. Instead, you are constrained to filling in certain methods, that must operate to fulfill not only individual-method unit tests, but tests that cover larger swaths of code.
As an example, consider that a user calls the program from the terminal without any arguments:
$ java edu.wit.cs.comp1050.PA3a
Please supply at least one argument at the command line.
That is, you will be writing verification that there is at least one argument supplied! Now let's consider a valid example:
$ java edu.wit.cs.comp1050.PA3a hello world!
Arguments (2, no duplication): hello world!
Length: total=11, avg=6
Shortest (5): <hello>
Longest (6): <world!>
Average (6): <world!>
Now you can see the program in action, but perhaps not all the pieces, so another:
$ java edu.wit.cs.comp1050.PA3a I see a little silhouetto of a man Scaramouche Scaramouche will you do the Fandango Thunderbolt and lightning very very fright'ning me
Arguments (22, has duplication): I see a little silhouetto of a man Scaramouche Scaramouche will you do the Fandango Thunderbolt and lightning very very fright'ning me
Length: total=113, avg=5
Shortest (1): first=<I>, last=<a>
Longest (11): first=<Scaramouche>, last=<fright'ning>
Average (5): none
The program produces outputs that counts the overall and average length (rounded to the nearest integer), checks for duplication, and outputs the first and last arguments that have the shortest, longest, and average lengths.
The following methods have been implemented completely, and you are NOT to change them:
- main: validates input, produces program output
- firstOfLength/lastOfLength: call a common utility method (that you WILL implement) to find an element of a particular length
- firstLongestElement/lastLongestElement: call a common utility method (that you WILL implement) to find the longest element
- firstShortestElement/lastShortestElement: call a common utility method (that you WILL implement) to find the shortest element
The remaining methods must be implemented by you, as guided by the Javadoc and JUnit tests.
What is vertical integration
: What is vertical integration? Give one example of backward and forward integration. Describe vendor managed inventory
|
Determine the cardinality ratio
: Determine the cardinality ratio for each intuitive relationship shown below, Example Answers: (1:1), (1,M), (M,1), (M,N) and explain why:
|
Write down the responsibilities of the administration
: Write a three to four-page essay on the role and responsibilities of the administration in facilitating and managing affirmative action in higher education.
|
Html document that displays the numbers
: Can someone help me to create these HTML documents / images please:
|
Outputs the first and last arguments
: The program produces outputs that counts the overall and average length (rounded to the nearest integer), checks for duplication
|
What tone is best suited to reach the targeted learners
: Give your opinion as to what tone is best suited to reach the targeted learners as an instructor, what method the LMS should provide to support.
|
Create a flowchart using visio and programming basics
: Create a Flowchart Using Visio and Programming Basics Writing Pseudocode videos, and review any relevant information in this week's lecture.
|
Non-technical user could understand
: Compose a two paragraph description of hashing that a non-technical user could understand.
|
Likert scale and the semantic differential scale
: Compare and contrast the Likert scale and the semantic differential scale. Which scale is the most effective and why?
|