Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Link to the Java Code and JUnit Test: https://drive.google.com/open?id=0BwuDVy83jWPuSFk2azZXcUxaX0U Problem a (PA3a.java) Your task is to write methods for a program that analyzes an arbitrary

image text in transcribed

image text in transcribed

Link to the Java Code and JUnit Test:

https://drive.google.com/open?id=0BwuDVy83jWPuSFk2azZXcUxaX0U

Problem a (PA3a.java) Your task is to write methods 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 frightl'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- Longest (11): firsts(Scaramouche>, 1asts(fright 'ning Average (5) none Problem a (PA3a.java) Your task is to write methods 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 frightl'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- Longest (11): firsts(Scaramouche>, 1asts(fright 'ning Average (5) none

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

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions

Question

3. What strategies might you use?

Answered: 1 week ago

Question

3. Is there opportunity to improve current circumstances? How so?

Answered: 1 week ago