Question: Create a variable middle which is the statistician's rst middle name if they have one or more and is blank if there is no middle

 Create a variable middle which is the statistician's rst middle name

Create a variable middle which is the statistician's rst middle name if they have one or more and is blank if there is no middle name. Assign the appropriate length. Examples: For George Edward Pelham Box it must Edward, for Ronald Aylmer Box it must be Aylmer and for Karl Pearson it must be blank. Compute a (numeric) variable called rstfor that gives the location of the rst occurrence of the character string 'for' in the text and is zero if there is no rst occurrence of 'for' in the text. Respect case here. l.e. the strings 'For', 'foR' , or any other combination with upper case letters in the spelling of this word are not wanted. It is acceptable for the string to occur as part of another word. Note: Do loops are not needed here. . Create a character variable LastSentence of length 400 which is the last sentence of the text as separated by periods, question marks or exclamation points. There should be no leading blanks. The ending punctuation may be omitted here. The last sentence must not be blank. Note: Do loops are not needed here. Create a character variable of length 15 called borndied. Then compute the following: It should be yearborn-yeardied if both values are present and yearborn - if the statistician is still alive. Examples: For Fisher borndied is 1890-1962 and Box it is 1919- . Note: Sometimes born and died are given in the form mm/dd/yyyy and sometimes yyyy. You need to handle both cases. Note: The not equal relation can be specied using "= or ne in case you need it

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!