Write a program and flowchart that will first receive from the user as input the name of an input file.

Program

Write a program and flowchart that will first receive from the user as input the name of an input file. It will then read in a list of names (as strings) from the input file specified (call it InFile.txt). As it reads the strings from the input file, it will store them in an array of strings.

The program will prompt the user for a name, search the name in the array and return the number of times that name was found in the array.

The program should output total number of instances of that name and then prompt for another name until the word done is typed in. Your program will need to use a While Loop to read the search names from the user.

Write a program and flowchart that will first receive from the user as input the name of an input file.
Scroll to top