/************************************************************************/

//You can directly implement this string version directly.

/************************************************************************/

 

 

double prOf1CharSeriesWhenTyping1Word

(string observedString, string wordString);

 

/************************************************************************/

//The function should calculate and return

//    the probability of getting a series of characters stored in  

//    the string object observedString

//    when you want to type the word stored in

//    the string object wordString

/************************************************************************/

 

 

 

/************************************************************************/

//Alternatively you can also implement this character array version if you want

/************************************************************************/

 

double prOf1CharSeriesWhenTyping1Word

(char observedString[], char wordString[]);

 

/************************************************************************/

//The function should calculate and return

//    the probability of getting a series of characters stored in  

//    the character array observedString

//    when you want to type the word stored in

//    the character array wordString

/************************************************************************/