Suppose 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 cat, dog, and llama to be 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 cAt that differ only in case. Option: As an extra challenge, have your program reject only lines that contain a profane word exactly. For example, Dogmatic concatenation is a small category should not be considered profane.
This project provides an opportunity to discuss some of the difficulties of in filtering information. It requires a conversion to lowercase and a compound Boolean expression.
See the code in ProfaneFilter.java.
You might also like to view...
The cross-over point is:
A. the point at which an algorithm crosses over from being fast to being slow B. the point at which n crosses over from being small to being large C. the point at which the graphs of the instruction functions of two algorithms intersect D. the point at which n intersects with time
Which of the following regulates the use and disclosure of individuals’ personal health information?
A) Sarbanes-Oxley B) HIPAA C) PCI DDS D) GDPR
Report fields can come from one or more tables or queries
Indicate whether the statement is true or false
An array formula is enclosed in ________ brackets
A) ( ) B) [ ] C) { } D) " "