Trusted by 2+ million users, 1000+ happy students everyday
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 consider the words "brown" "black" "white"tobe profane. Write a program that reads a string from the keyboard and tests whether the string contains one of our profane words. Your program should find words like"WHite"that differ only in case.Have your program reject only lines that contain a profane word exactly. For example,Whitemanor Brownbagshould not be considered profane.List of Profane words: Create a list of 12 profane words
Found this document preview useful?
You are reading a preview Upload your documents to download or Become a Desklib member to get accesss