Menu

Need Help Theses Two Exercises Java Exercises Must Done Java Please Provide Comments Indic Q43898176

I need help with theses two exercises in JAVA. The exercisesmust be done in Java. Please provide comments that indicates thepurpose of methods and all parameters and return value. Alsoexplain complex algorithms or solutions to the problems. Indicateall in JAVA. Cheers!

Exercise 1

Spam (or junk e-mail) costs U.S. organizations billions of dollars a year in spam-prevention software, equipment, network res

3. After calculating the spam score of the message, the application will display the spam score to the user via a message box

i The converted date is April 25, 1955 OK Figure 4. Message box showing converted date for Exercise 2 3. If the date was ente

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. 1. Create a graphical interface that looks similar to the one shown in Figure 1 below. Spam Score Calculator Type or paste email text below: Clear Verify Figure 1. Graphical User Interface for Exercise 1 2. 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 message’s “spam score.” As seen on Buy Extra income Meet singles Million dollars Save big money Opportunity Cash No fees Online degree Additional income home Miracle Eliminate debt Lower interest rate Pre- approved Consolidate your debt Avoid bankruptcy Satisfaction Risk free Free hosting You have been Weekend selected getaway You’re a Winner! NO Guarantee Offer Unlimited Trial obligation Table 1. Commonly occurring spam words and phrases No purchase necessary 3. After calculating the spam score of the message, the application will display the spam score to the user via a message box, similar to that shown in Figure 2. i The spam score for this message is _ OK Figure 2. Message box displaying the spam score 4. When the user clicks the Clear button, erase the contents of the JTextArea box (i.e., set the text property to an empty string). Exercise 2 Dates are printed in several common formats. Two of the more common formats in the U.S. are: 04/25/1955 and April 25, 1955 1. Create the graphical interface as shown in Figure 3. Date Format Converter Enter date in the format mm/dd/yyyy! Convert Figure 3. Graphical User Interface for Exercise 2 2. The user will enter a date in the first format above 04/25/1955) in the text box on the form. When the user clicks the Convert button, the application will display the date that was entered in the second format shown above (April 25, 1955) in a message box similar to Figure 4. i The converted date is April 25, 1955 OK Figure 4. Message box showing converted date for Exercise 2 3. If the date was entered in an invalid format, your code must display a message box similar to that shown in Figure 5. An invalid date was specified. Please try again. | OK ) Figure 5. Message box showing invalid date error for Exercise 2 Show transcribed image text 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. 1. Create a graphical interface that looks similar to the one shown in Figure 1 below. Spam Score Calculator Type or paste email text below: Clear Verify Figure 1. Graphical User Interface for Exercise 1 2. 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 message’s “spam score.” As seen on Buy Extra income Meet singles Million dollars Save big money Opportunity Cash No fees Online degree Additional income home Miracle Eliminate debt Lower interest rate Pre- approved Consolidate your debt Avoid bankruptcy Satisfaction Risk free Free hosting You have been Weekend selected getaway You’re a Winner! NO Guarantee Offer Unlimited Trial obligation Table 1. Commonly occurring spam words and phrases No purchase necessary
3. After calculating the spam score of the message, the application will display the spam score to the user via a message box, similar to that shown in Figure 2. i The spam score for this message is _ OK Figure 2. Message box displaying the spam score 4. When the user clicks the Clear button, erase the contents of the JTextArea box (i.e., set the text property to an empty string). Exercise 2 Dates are printed in several common formats. Two of the more common formats in the U.S. are: 04/25/1955 and April 25, 1955 1. Create the graphical interface as shown in Figure 3. Date Format Converter Enter date in the format mm/dd/yyyy! Convert Figure 3. Graphical User Interface for Exercise 2 2. The user will enter a date in the first format above 04/25/1955) in the text box on the form. When the user clicks the Convert button, the application will display the date that was entered in the second format shown above (April 25, 1955) in a message box similar to Figure 4.
i The converted date is April 25, 1955 OK Figure 4. Message box showing converted date for Exercise 2 3. If the date was entered in an invalid format, your code must display a message box similar to that shown in Figure 5. An invalid date was specified. Please try again. | OK ) Figure 5. Message box showing invalid date error for Exercise 2

Expert Answer


Answer to I need help with theses two exercises in JAVA. The exercises must be done in Java. Please provide comments that indicate…

OR