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

//Implement the following function with information stored character arrays.

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

 

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

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

 

 

 

 

 

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

//Alternatively, you can implement this string version directly

//   if you prefer having information stored in string objects instead.

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

 

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

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