Write a program that prompts for your first name and then


Lab Assignemnt

1. Write a program that prompts for your first name and then last name. Enter them respectively and make your full name and output it.

2. Write a program that fmds the smallest word and largest word in a series of words. The program must stop accepting input when the user enters "stop". Assume that no word is more than 20 letters long. The following is an example run:

Enter word:
Enter word: zebra
Enter word: rabbit
Enter word: cat
Enter word: fish
Enter word: stop
Smallest word: cat Largest word: zebra

3. Write a program that counts the number of vowels (a,e i cku) in a sentence entered from the keyboard. Now define a function that contains a string parameter. The function will counts the number of vowels in the string parameter and returns the count. Call the function in the main.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program that prompts for your first name and then
Reference No:- TGS02304015

Now Priced at $35 (50% Discount)

Recommended (93%)

Rated (4.5/5)