Write a program that prompts for your first name and then


You need the programs to be in C code, if possible can you provide a screen shot of the solution running please.

Lab 9.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.

Lab 9.2

Write a program that finds 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: dog

Enter word: zebra

Enter word: rabbit

Enter word: cat

Enter word: fish

Enter word: stop

Smallest word: cat

Largest word: zebra

Lab 9.3. In Lab 4.2 you were asked to write a program that counts the number of vowels (a,e,i,o,u) 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.

4.2 Lab code:

char sentence;

int vowels = 0;

int i;

printf("Enter a Sentence: \n");

sentence = getchar();

while (sentence != '\n')

{

if (sentence == 'a' || sentence == 'e' || sentence == 'i' || sentence == 'o' || sentence == 'u' || sentence == 'A' || sentence == 'E' || sentence == 'I' || sentence == 'O' || sentence == 'U')

{

vowels++;

}

sentence = getchar();

}

printf("There are %d vowels in the given sentence \n", vowels);

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a program that prompts for your first name and then
Reference No:- TGS02874739

Expected delivery within 24 Hours