CS 341, Fall 2024      Iyengar Assignment # 2

 

Due: Midnight, Tuesday 3/12/24

 

Managing SAT Word List Data

 

Input:              A text file named “words.dat” with a random number of words and their description.

 

                        Example:

                                                Abhor                          v          to detest strongly

                                                Mountain                    n          a natural elevation of the earth’s surface

                                                Great                           a          unusual, notable, important and/or consequential

 

Output:            Formatted output on a display window and a menu window with buttons to choose from.

 

Control:          The user is requested to make a choice – click an appropriate button on the menu window. Output to be presented per choice made on the display window. Repeat until user chooses quit option.

 

            The options are.

 

1)     To display the verbs (and meaning) in alphabetical order.

2)     To display the nouns (and meaning) in alphabetical order.

3)     To display the adjectives (and meaning) in alphabetical order.

4)     To add a new entry.

·       Upon clicking this option – a new entry window pops up that requests the word (text input to be typed in), a selection of verb/noun/adjective, and a text input of the meaning of the word, and a submit button. Upon clicking this submit button, the word and its properties must be added to the list of words with the system.

5)     To check meaning.

·       Upon clicking this option – a new window pops up and requests a word (text input to be typed in) and a submit button. Upon clicking this button, the system searches and displays the word and its properties (if found) or displays a message to the effect that the word is not found in the system. Note – the words should be searched case insensitive.

6)     To save the system and its data for later use.

7)     Quit Application

 

Assumptions: 

·       Words are case insensitive.

·       A word can be either a verb, noun, or an adjective. There cannot be duplicates.

 

Submission:   

 

Questions and Collaboration: Any questions about the problem – email, inquiry in class or discussion with instructor.

                                                You are free to discuss the problem-solving part.

                                                Do not view or use code developed by others.

 

Bonus: Additional 20% extra credit if you implement a multi-list to store and retrieve the words.