Limited-time offer! Save up to 50% Off | Solutions starting at $6 each  

Trusted by 2+ million users,
1000+ happy students everyday
Showing pages 1 to 1 of 1 pages
Profane FilterSuppose that we are working for an online service that provides a bulletin board for its users.We would like to give our users the option of filtering out profanity. Suppose that we considerthe words"brown" "black" "white"tobe profane. Write a program that reads a string fromthe keyboard and tests whether the string contains one of our profane words. Your programshould find words like"WHite"that differ only in case.Have your program reject only lines that contain a profane word exactly. Forexample,Whitemanor Brownbagshould not be considered profane.List of Profane words:Create a list of 12 profane words
You’re reading a preview
Preview Documents

To View Complete Document

Click the button to download
Subscribe to our plans

Download This Document