Question: ASSIGNMENT 8 Part 1 . Design a driver class called YourNameAssignment 8 ( replace YourName with your actual name, no spaces ) with the following

ASSIGNMENT 8
Part 1. Design a driver class called YourNameAssignment8(replace YourName with your actual name, no
spaces) with the following exact1 functionality and names (replace YourName with your actual name or the
name you go by, no spaces):
1. Read lines from the Assingment8Data.txt file and split them into tokens. In the file, the tokens are delimited
by whitespaces, punctuation marks (comma, period/dot, colon, semi-colon, slash), quotation marks,
exclamation marks, and parentheses2. Do not use as delimiter symbols like plus, hashtag, hyphen, or other
characters that can be part of words/concepts like C++, C#, Objective-C, etc.
2. Add the tokens you read from the file into an ArrayList called YourNameArrayList .Do not add any empty
strings to your array list.
3. Print all the words from the YourNameArrayList, one word per line.
4. For every token in the YourNameArrayList count the followings and print them out in a user-
friendly/meaningful way:
Number of tokens with letters in them (e.g. COSC1437)
Number of tokens with numbers in them (e.g. COSC1437)
Number of tokens with symbols in them (e.g. C++, C#)
Number of tokens with upper cases in them (e.g. Java)
Number of tokens with lower cases in them (e.g. Java)
Number of tokens that starts with a letter (e.g. Java)
Number of tokens with only letters in them (e.g. programming)
Number of tokens with only numbers in them (e.g.1102015607)
Number of tokens with both and only letters and numbers in them (e.g. COSC1437)
Part 2. Implement the class in NetBeans IDE and JAVA: Create a JAVA project called YourNameAssignment8
(same name as the driver class), and add your code to the YourNameAssignment8 driver class. Use only
concepts learned in class so far (Chapters 1 to 8). Your program should be user-friendly and well-
documented/commented (have comments for every line of code). You can lose additional points for not
documenting your code, for naming the programs, files, classes, fields, and methods as requested, not submitting the
correct files, cheating, hardcoding the results, and using concepts we did not learn in class yet.
Part 3. Create the screenshot document for your code and output: Create a Microsoft Word document from
the YourName-Assignment.docx template and call it YourName-Assignment8.docx (replace YourName with
your actual name). Add to the document your complete screenshots of the NetBeans editor window showing
the complete JAVA source code for YourNameAssignment8 class to the DRIVER CLASS section, and complete
screenshots of the complete output for the attached Assignment8DataFile.txt to the OUTPUT section. If the
entire class JAVA source code or the output does not fit in one screenshot or the screenshots cannot be easily
read, create multiple screenshots and add multiple screenshots to the screenshot document. Please keep the
screenshots in order (look at the line numbers).
Part 4. Submit your work: Submit YourName-Assignment8.docx on eCampus under the Assignment 8. Do not
archive the files (e.g. no RAR, ZIP, etc.) or submit other types/formats of files (e.g. no CLASS, PDF, JAVA, JAR,
TXT, etc.).
1 Use the exact names (spelling, caps). You are not going to earn any credit if the classes and methods do not contain your actual name
and have the exact/precise names and functionality.
2 Symbols like \+*.?[]|>()^ $ {} have special meanings in regular expressions and should be escaped (use backslash) I have also attached the data textfile
ASSIGNMENT 8 Part 1 . Design a driver class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!