Reference no: EM132081279
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);
Determine necessary consideration for building your program
: Displays a list of animal/habitat options (based on the previous selection) as read from either the animals or habitats file.
|
Share of common stock be selling for in the market
: The company has a dividend payout ratio of 50%, book value per share of $33.5 and a P/E ratio of 15. What should one share of common stock
|
Identify at least one candidate key
: Identify at least one candidate key. If there are no candidate keys, give an example of an attribute that could be used as a candidate key.
|
What is the value of company
: If the cost of capital is 10%, what is the value of this company?
|
Write a program that finds the smallest word and largest
: Write a program that prompts for your first name and then last name. Enter them respectively and make your full name and output it.
|
The art of cinematography
: To create an effective designed, the director, cinematographer, and production designer need to work together
|
What is the company current stock price
: The company's beta is 1.65, the market risk premium is 8.5%, and the risk-free rate is 5.50%. What is the company's current stock price?
|
What was his return on invested capital
: How much money did Mark make? What was his return on invested capital, given that the initial margin was 12.50%?
|
What is the market value of the contract
: Since he was young, Mark has been at his family's business house, which has to do with growing and selling Eastern Australia Canola
|