Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Team, Please I need help writing this whole program in C++. Thanks COSC 3100-Data Structures II Assignment #3 Recursive Count Occurrences Function DUE DATE Due

Team,

Please I need help writing this whole program in C++.

Thanksimage text in transcribedimage text in transcribedimage text in transcribed

COSC 3100-Data Structures II Assignment #3 Recursive Count Occurrences Function DUE DATE Due at 11:59 PM on Wednesday, November 7th. Submit the cpp file on the Canvas assignment page PROGRAM SPECIFICATIONS This program uses movie titles and search-targets from a text file provided (movies.txt). Read all inputs from the file in main). Movies.txt format is: [ movie list, newline, search target, newline,] repeating until the end of the file. No single "movie list" will be longer than 256 characters. A char array (holding the movie titles) and a char target search symbol, as well as the length of the current string, should be used by the recursive countTarget function. This function will be called from main() for each pair in the file. The output (displayed from main()) should be as shown in the example Follow the Department Style Requirements for full credit. MISCELLANEOUS REQUIREMENTS file name: counting.cpp No other file is needed. Submit a copy of the file with the output included. Use the following prototype for the recursive function: int countTarget (char titlesll, char target, int n; where n is length of the array-string in the titles[]l array. (n will be the variable tested and changed with each fuction call) MUST FOLLOW STANDARD FORMAT FOR A VALUE RETURNING RECURSION FUNCTION Hint: Review what you learned in Program handling array-strings and char characters See chapters 10 & 12 in the Programm required reading data from a file. Do NOT use the eof() flag. l and Data Structures I about correctly reading from files and ingll textbook, also review programs from last semester that or output requirements example

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions