Question: Write a program that gets input of accepts from a user a person's full name with their title ( ie: Mr . John Smith, Dr

Write a program that gets input of accepts from a user a person's full name with their title (ie: Mr. John Smith, Dr. Edward Jones)
The program removes the title and prints out the person's name with the title removed (John Smith, Edward Jones)
If the name does not have a title then print ("Name does not have a title")
The title can be any combination of letters before a period so you will need to take this into account for your search. Each title ends with a period but the title can be many different types (Dr. Mr. Rev. Ms. just to name few!)
USE THE FIND METHOD FOR THIS PROGRAM:
find(substring)
The substring argument is a string. The method returns the lowest index in the string where substring is found. If substring is not found,the method returns 1.
2. Write a program that accepts a test score as a string. Verify that the test score entered is a valid number and if so print ("Test score accepted ") otherwise print ("Can only accept numbers as test scores ")
3. Write a program that accepts a string as input from a user.
Count the number of spaces in the string. Print 'The number of spaces is: ' and the resultCount the number of digits in the string. Print 'The number of digits is: ' and the resultCount the number of lower case letters in the string. Print 'The number of lower case letters is: ' and the result.

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 Programming Questions!