Question: Needs to be in C program 1 Letter Search We wish to determine how many times a character appears in the file Anyone.txt Write a

Needs to be in C program Needs to be in C program 1 Letter Search We wish to

1 Letter Search We wish to determine how many times a character appears in the file Anyone.txt Write a program that Prompts the user for a character. Searches through the file Sample.txt and prints out how many times the character is found on each line. Counts the number of lines found of the total number lines in the file. Assuming that the file Anyone.txt contains anyone lived in a pretty how town (with up so floating many bells down) spring summer autumn winter he sang his didn't he danced his did. Sample Code Execution 1: Red text indicates information entered by the user Which character would you like to find? w w was found 2 times on Line 1 w was found 2 times on Line 2 w was found 1 times on Line 3 w was found 0 times on Line 4 w was found on 3 out of 4 Lines Sample Code Execution 2: Which character would you like to find? r was found 1 times on Line 1 r was found 0 times on Line 2 r was found 3 times on Line 3 r was found 0 times on Line 4 r was found on 2 out of 4 Lines

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!