Question: Write a program that allows you to enter a babys full name (first name and last name) as one string. Your program will determine how

Write a program that allows you to enter a babys full name (first name and last name) as one string. Your program will determine how many times a lowercase vowel appears in the babys name. Using the top two vowels you will output the two sayings for the baby along with the babys first name. If there is no second vowel or there is a tie, then do not output a second saying. If there is a tie for the first vowel then output the default saying. You must use a function to read in the babys name as string, this value will be passed by reference. You must use a function to find each vowel in the name, the function will return the number of times the vowel (letter) was found. You should ONLY have one function which will be called five times from main to find each vowel (letter). You must use a function to find the vowels that occur the most and output the baby sayings. See Function definitions and welcome() function definition. INPUT VALIDATION: Babys Name is not NULL (Hint: Use str.empty() to check to see if the string is empty, where str is a variable of type string. For example: Input: Anna Gain Output: Anna, a little bit of heaven sent down to earth; in everything you do dream big. Input: Bobby Job Output: Bobby, oh, dont you know you will be my greatest adventure. Input: Theresa Smith Output: Theresa, everything is beautiful because now we have you. Input: Pete Motors Output: Pete, this is the start of your own sweet story Baby Sayings: a a little bit of heaven sent down to earth. e everything is beautiful because now we have you. i in everything you do, dream big. This is to be done in C++ thanks in advance.

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