Question: ASSIGNMENT 3 B Assignment 3 B tests your knowledge of strings in C + + ( Chapter 7 ) . Part 1 . Design a
ASSIGNMENT B
Assignment B tests your knowledge of strings in CChapter
Part Design a program called YourNameAssignmentB replace YourName with your actual name, no spaces
that contains the following exact functions with exact names, exact parameters, exact name of the parameters,
exact types of parameters, exact return values, and exact functionality:
Name DescriptionFunctionality
Count A function with string parameters S and S that counts all occurrences of a string
S inside a string Sthe strings given as parameters meaning how many times you
can find S in S and return it The function should return if S is not in S You can
find S in the string S multiple times, so you will need to search the string S
repeatedly until you reach the end of S or cannot find it anymore.
main The main function of the program should read lines from the attached
AssignmentBDataFile.txt file and for each Line, use the Count function to see how
many time times the word computerin any cases eg Computer, computer,
COMPUTER can be found in Line, and add the returned line count to the total count for
the file, close the file, and outputs the total count.
Part Implement the program in Visual Studio : Create a C project called YourNameAssignmentB and
add your code to YourNameAssignmentB main function. Your program should be userfriendly be well
documentedcommented have comments for every line of code and use only concepts learned in class so far
so do not use arrays, pointers, cstrings or array of string, lists, or any other concepts we did not learn in
Chapters to
Part Create the screenshot document for your code and output: Create a Microsoft Word document from
the YourNameAssignment.docx template and call it YourNameAssignmentBdocx replace YourName with
your actual name Add to the document your complete screenshots of the Visual Studio editor window showing
the complete C source code for YourNameAssignmentB program and complete screenshots of the complete
output. If the entire class C source code or the output does not fit in one screenshot or the screenshots cannot
be easily read, create multiple screenshots, and add multiple screenshots to the document. Please keep the
screenshots in order.
Part Submit your work: Submit YourNameAssignmentBdocx document on eCampus under the
Assignment B Do not submit other typesformats of files eg no CLASS, PDF CPP etc. Please review the file
and resubmit if not correct.
With this exact name, parameters, return value, and definition. Here is the prototype:
int Count string S string S
You can find S in the string S multiple times, so you will need to search the string S repeatedly until you reach the
end of S or cannot find it anymore
Search for each one of the words and add them to your line count
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
