Question: Any chance I could get some help with this? Direction 5 is asking you to change all the letters from input to the opposite case

Any chance I could get some help with this? Direction 5 is asking you to change all the letters from input to the opposite case so just asks you to change all uppercase letters to lowercase and vice versa. My main struggle is getting one array to copy to a new array.

Any chance I could get some help with this? Direction 5 is

For this week's lab assignment your lab7.c program use the following algorithm to do the following: - after declaring and initializing the other variables, initialize the following: 1. copy the given file poe-raven.txt to a file called input.txt 2. declare the file pointer called inFile as shown above on the previous page 3. read in the text (NOT using redirection) from the file input. txt as you did in last week's lab using fgets () but specify inFile as the file pointer instead of stdin and save the text in an array 4. while reading in the text, keep track of the number of lines read in, store that in a variable 5. copy the array into another array called oppositeCase which will be the one used to convert the case of the characters while preserving the original array (not overwriting the original array) - in a loop, do the following: 1. print the menu to the user, enforcing valid input of 1,2,3, or 4 ; use the following printf statements: 2. if the menuChoice from the user is a 1 , then print the array to the screen 3. else if the menuChoice from the user is a 2 , then print the number of lines in the poem 4. else if the menuChoice from the user is a 3, then convert the case in the second array called oppositeCase and then print that array to the screen Important note: Don't forget the final printf( ) statement shown above that prints an extra new line after scanf( ). This is important for the autograder to be able to read your program's output properly. Sample Output [14:09:18] chochriejoey15: [14] ./a.out Choose from the menu: 1. print the poem 2. show number of lines in the poem 3. convert the case 4. quit ->6 Choose from the menu: 1. print the poem 2. show number of lines in the poem 3. convert the case For this week's lab assignment your lab7.c program use the following algorithm to do the following: - after declaring and initializing the other variables, initialize the following: 1. copy the given file poe-raven.txt to a file called input.txt 2. declare the file pointer called inFile as shown above on the previous page 3. read in the text (NOT using redirection) from the file input. txt as you did in last week's lab using fgets () but specify inFile as the file pointer instead of stdin and save the text in an array 4. while reading in the text, keep track of the number of lines read in, store that in a variable 5. copy the array into another array called oppositeCase which will be the one used to convert the case of the characters while preserving the original array (not overwriting the original array) - in a loop, do the following: 1. print the menu to the user, enforcing valid input of 1,2,3, or 4 ; use the following printf statements: 2. if the menuChoice from the user is a 1 , then print the array to the screen 3. else if the menuChoice from the user is a 2 , then print the number of lines in the poem 4. else if the menuChoice from the user is a 3, then convert the case in the second array called oppositeCase and then print that array to the screen Important note: Don't forget the final printf( ) statement shown above that prints an extra new line after scanf( ). This is important for the autograder to be able to read your program's output properly. Sample Output [14:09:18] chochriejoey15: [14] ./a.out Choose from the menu: 1. print the poem 2. show number of lines in the poem 3. convert the case 4. quit ->6 Choose from the menu: 1. print the poem 2. show number of lines in the poem 3. convert the case

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!