Question: JAVA How to Program late Objects 10th Edition Question Deitel&Deitel14.27 Spam (or junk e-mail) costs U.S. organizations billions of dollars a year in spam-prevention software,

JAVA How to Program late Objects 10th Edition Question Deitel&Deitel14.27

Spam (or junk e-mail) costs U.S. organizations billions of dollars a year in spam-prevention software, equipment, network resources, bandwidth, and lost productivity. In this exercise, you will be doing your part to help identify the likelihood that a given message is spam by assigning a spam score to a message entered by the user.

Create a graphical interface to type in email text into a JTextArea.

Table 1 below provides a list of 30 words or phrases that commonly occur in spam messages (this list is far from exhaustive). Write an application in which the user enters an email message into a JTextArea. When the user clicks the verify button, your application must scan the message for each of the 30 keywords or phrases. For each occurrence of one of these within the message, add a point to the messages spam score.

As seen on

Buy

Meet singles

Extra income

Million dollars

Save big money

Opportunity

Cash

No fees

Online degree

Work at home

Additional income

Eliminate debt

Lower interest rate

Pre-approved

Consolidate your debt

Avoid bankruptcy

Miracle

Satisfaction

Risk free

Free hosting

You have been selected

Weekend getaway

You're a Winner!

Offer

Unlimited

No obligation

Trial

Guarantee

No purchase necessary

Table 1. Commonly occurring spam words and phrases

After calculating the spam score of the message, the application will display the spam score to the user via a message bo

When the user clicks the Clear button, erase the contents of the JTextArea box (i.e., set the text property to an empty string).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!