Typing Tutor is a small company that develops software for kids ages 8 to 15 to improve their typing/keyboard skills. The company is conducting a pilot study in a school to capture the standard/typing skill levels of forty kids (between 5 to 7 years) on a voluntary basis. The teacher will show words and photos on a projector and the kid(s) will retype the displayed word or enter a title for the photo quickly. You need to develop a script, “Text Analytics,” to facilitate a kid to enter the words and the teacher to conduct some exploratory analytics on the entered information.  (30 Marks)

 

A sample run of the script is included for your understanding.

 

Before you attempt to write the program/script, please go through the sample run and first identify all the cases that must be satisfied. Then leap towards writing the code. The problem can be solved with ALL the contents covered in the course.

Comment your code. If you cannot make me understand the code, I can not give your marks ☹

 

 

NOTE-1: I am aware of the four similar solutions on Stack overflow and Data Comm. So PLEASE do not copy/paste or steal code excerpts from there. Plagiarism in any form and level will not be tolerated and will be dealt with as per university policies.

NOTE-2: The sample run has been copied into the BB system from the console. Please ignore any formatting issues in the pasted RUN.

NOTE-3: What is a Bi-Gram word. Simply a string consisting of two words. For example.,:

1) 'User friendly',

2) ' Post mortem',

3) 'Too good', 

4)  ' ad hoc' 

 

SAMPLE RUN

************************************************

~~~~~~~~~~~~ Text Analytics~~~~~~~~~~~~~~~~~~~~~

************************************************

************* MAIN MENU **********************

Press/Enter 1 to enter word(s).
Press/Enter 2 to see the entry summary.
Press/Enter 3 to see words summary.
Press/Enter 4 to sort/organize the words.
Press/Enter 5 to Quit the application.
************************************************

Enter the choice: 1

Please enter a word OR press ‘space bar’ to exit: have

Please enter a word OR press ‘space bar’ to exit: do

Please enter a word OR press ‘space bar’ to exit: say

Please enter a word OR press ‘space bar’ to exit: afefa

Wow!! You entered a PALINDORE: AFEFA

Please enter a word OR press ‘space bar’ to exit: get

Please enter a word OR press ‘space bar’ to exit: make

Please enter a word OR press ‘space bar’ to exit: #$40$!

Invalid word: includes SPECIAL characters: #,$,!  

Please enter a word OR press ‘space bar’ to exit: go

Please enter a word OR press ‘space bar’ to exit: know

Please enter a word OR press ‘space bar’ to exit:  take

Please enter a word OR press ‘space bar’ to exit: see

Please enter a word OR press ‘space bar’ to exit:  good job

Please enter a word OR press ‘space bar’ to exit: #&***&!

Invalid word: includes SPECIAL characters: #,&,*,!

Please enter a word OR press ‘space bar’ to exit: user friendly

Please enter a word OR press ‘space bar’ to exit: come

Please enter a word OR press ‘space bar’ to exit: !!Yahoo!!!

Invalid word: includes SPECIAL characters:!

Please enter a word OR press ‘space bar’ to exit: rotor

Wow!! You entered a PALINDORE: ROTOR

Please enter a word OR press ‘space bar’ to exit: think

Please enter a word OR press ‘space bar’ to exit: look

Please enter a word OR press ‘space bar’ to exit: Too Good

***** Too Good is a bi-gram!! **************

Please enter a word OR press ‘space bar’ to exit: food

Please enter a word OR press ‘space bar’ to exit: Too Good

***** Too Good is a bi-gram!! **************

Please enter a word OR press ‘space bar’ to exit: want

Please enter a word OR press ‘space bar’ to exit: give

Please enter a word OR press ‘space bar’ to exit: use

Please enter a word OR press ‘space bar’ to exit: find

Please enter a word OR press ‘space bar’ to exit: tell

Please enter a word OR press ‘space bar’ to exit: use

Please enter a word OR press ‘space bar’ to exit: ask

Please enter a word OR press ‘space bar’ to exit: work

Please enter a word OR press ‘space bar’ to exit: seem

Please enter a word OR press ‘space bar’ to exit: feel

Please enter a word OR press ‘space bar’ to exit: leave

Please enter a word OR press ‘space bar’ to exit: call

Please enter a word OR press ‘space bar’ to exit: radar

Wow!! You entered a PALINDORE: RADAR

Please enter a word OR press ‘space bar’ to exit: fail

Please enter a word OR press ‘space bar’ to exit:   

 

*********** Word Entry finished. ******************

 

 

************************************************

~~~~~~~~~~~~ Text Analytics~~~~~~~~~~~~~~~~~~~~~

************************************************

************* MAIN MENU **********************

Press/Enter 1 to enter word(s).
Press/Enter 2 to see the entry summary.
Press/Enter 3 to see words summary.
Press/Enter 4 to sort/organize the words.
Press/Enter 5 to Quit the application.
************************************************

Enter the choice: 2

***********************************************

*********** Entry Summary***********************

***********************************************

You entered total of 32 valid words
You entered 28 unique words
You entered 2 bi-grams: good job, Too Good
You entered 3 palindromes: afefa, rotor, radar
You entered 3 INVALID words: #$40$!, #&***&!, !!Yahoo!!! . The words are deemed invalid as they contained following special characters: #, $, !, &, *
You entered 2 duplicate words: Too Good, use
 

************************************************

~~~~~~~~~~~~ Text Analytics~~~~~~~~~~~~~~~~~~~~~

************************************************

************* MAIN MENU **********************

Press/Enter 1 to enter word(s).
Press/Enter 2 to see the entry summary.
Press/Enter 3 to see words summary.
Press/Enter 4 to sort/organize the words.
Press/Enter 5 to Quit the application.
************************************************

Enter the choice: 3

***********************************************

*********** Words Summary***********************

***********************************************

The words starting with alphabet [a] is/are: afefa, ask

There is No word starting with [b]

The words starting with alphabet [c] is/are: call, come

The words starting with alphabet [d] is/are: do

There is No word starting with [e]

The words starting with alphabet [f] is/are: fail, feel, find, food

The words starting with alphabet [g] is/are: get, give, go, good job

The words starting with alphabet [h] is/are: have

There is No word starting with [i]

There is No word starting with [j]

The words starting with alphabet [k] is/are: know

The words starting with alphabet [l] is/are: leave, look

The words starting with alphabet [m] is/are: make

There is No word starting with [n]

There is No word starting with [o]

There is No word starting with [p]

There is No word starting with [q]

The words starting with alphabet [r] is/are: rotor

The words starting with alphabet [s] is/are: say, see, seem

The words starting with alphabet [t] is/are: take, tell, think, Too Good

The words starting with alphabet [u] is/are: use

There is No word starting with [v]

The words starting with alphabet [w] is/are: want, work

There is No word starting with [x]

There is No word starting with [y]

There is No word starting with [z]

 

************************************************

~~~~~~~~~~~~ Text Analytics~~~~~~~~~~~~~~~~~~~~~

************************************************

************* MAIN MENU **********************

Press/Enter 1 to enter word(s).
Press/Enter 2 to see the entry summary.
Press/Enter 3 to see words summary.
Press/Enter 4 to sort/organize the words.
Press/Enter 5 to Quit the application.
************************************************

Enter the choice: 4

~ ~ ~ Enter 1 to alphabetically sort the words by FIRST characters OR Enter 2 to sort the words by SECOND characters OR Enter 3 to sort the words by LAST characters OR ENTER 4 to return to the main menu ~ ~ ~

*********************************************************************

Ener the choice to sort: 3

The words sorted based on their last characters are: afefa

good job, find, food, Too Good, Too Good, come, give, have, leave, make, see, take, use, use, ask, look, think, work, call, fail, feel, tell, seem, do, go, rotor, get, want, know, say, user friendly

************************************************

~~~~~~~~~~~~ Text Analytics~~~~~~~~~~~~~~~~~~~~~

************************************************

************* MAIN MENU **********************

Press/Enter 1 to enter word(s).
Press/Enter 2 to see the entry summary.
Press/Enter 3 to see words summary.
Press/Enter 4 to sort/organize the words.
Press/Enter 5 to Quit the application.
************************************************

Enter the choice: 5

Good Bye!!!