Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Program #3 (use c++ to answer the follwoing question) A frequency table lists words and the number of times each word appears in a text
Program #3 (use c++ to answer the follwoing question)
A frequency table lists words and the number of times each word appears in a text file. Write a program that creates a frequency table for a file whose name is entered by the user. You can use a map of string-int pairs. You may want to use the C library function ispunct() (in header file CTYPE.H) to check for punctuation so you can strip it off the end of a word, using the string member function substr(). Also, the tolower() function may prove handy for uncapitalizing words.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started