COSC 1B
ASSIGNMENT 1B
Assignment 1B tests your knowledge of List, Stacks, Queues, and Priority Queues (Chapter 20).
Design a program/project/driver class (the program/project/driver class file should be called YourNameAssignment1B; replace YourName with your actual name) with the following exact1 functionality and names (replace YourName with your actual name or the name you go by, no spaces):
1. Read words from the Assingment1BData.txt file and store them into a List, Stack, or Queue data structure called YourNameStructure (any type of lists, queues, or stacks introduced in Chapter 20 - use your knowledge of the chapter and problem at hand to decide which one is better). In the file, the words are delimited by whitespaces, punctuation marks (comma, period, colon, semi-colon, exclamation mark, question mark, etc.), quotation marks, parentheses, and other symbols2. Do not add any empty strings to your structure.
2. For each word from the YourNameStructure, count how many time the word occurs in the list in any caps (e.g. “COMPUTER”, “Computer”, “computer”, are the same word) and outputs the word and the number of occurrences of the word in the YourNameStructure one word-number per line. To avoid printing a word multiple times, remove the additional/duplicate from the structure after updating the counter/number of occurrences of that word. Make the output easy to read (e.g. formatted output, table, etc.).
Create a Microsoft Word document called YourNameAssignment1B-Screenshot.docx. (replace YourName with your actual name) that contains screenshots of the editor window showing the entire JAVA source code in editor and the entire output. 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 them to the same document.
Submit YourNameAssignment1B.java JAVA source code file and YourName-Assignment1B-Screenshots.docx Microsoft Word screenshots document on eCampus under the Assignment 1B. Do not archive the files (no ZIP, no RAR, etc) or submit other file formats. Review the files in your eCampus submission confirmation window.
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 If you are going to read an entire line, you are going to need to split it to extract the words.