Profane Filter.

Added on - 16 Sep 2019

  • Dissertation

    type

  • 1

    pages

  • 127

    words

  • 87

    views

  • 0

    downloads

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
desklib-logo
You’re reading a preview
card-image

To View Complete Document

Become a Desklib Library Member.
Subscribe to our plans

Unlock This Document