-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProblemStatement.txt
More file actions
66 lines (42 loc) · 1.54 KB
/
ProblemStatement.txt
File metadata and controls
66 lines (42 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Command Line Dictionary Tool
Create a command line dictionary tool using wordnik (http://wordnik.com) api.
Check Wordnik API here - http://developer.wordnik.com/docs
Requirements
The command line tool should have following functions -
The output should be nicely formatted on console, and show all relevant information.
1. Word Definitions
Display definitions of a word.
./dict def <word>
2. Word Synonyms
Display synonyms of a word.
./dict syn <word>
3. Word Antonyms
Display antonyms of a word
./dic ant <word>
4. Word Examples
Display examples of a word
./dict ex <word>
5. Word Full Dict
Display all above details for a word
./dict <word> or ./dict dict <word>
6. Word of the Day Full Dict
Display all above details of word of the day
./dict
7. Word Game
./dict play
The program should display a definition, synonym, or antonym
And ask the user to enter the word
If correct word is entered, program should tell that the word is correct
* Other(not displayed) Synonyms of the word should be accepted as correct answer.
If incorrect word is entered, program should ask for
- 1. try again
Lets user enter word again
- 2. hint
Display a hint, and let user enter word again
Hint can be
Display the word randomly jumbled (cat -> atc)
OR Display another definition of the word
OR Display another antonym of the word
OR Display another synonym of the word
-3 quit
Display the word, its full dict, and quit