SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 5 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 16 Oct 2017 My Price 10.00

In this module/week’s homework assignment,

Hello. I am having some difficulty getting started with a Java application homework assignment about graphical user interfaces. Attached is the assignment along with code I h

Homework 2 Instructions

 

Overview

In this module/week’s homework assignment, you will complete 2exercises that will allow you to practice your skill onthe topics of GUI design and regular expressions that you learned about in the Reading & Study materials for this module/week.

 

Instructions

  1. Refer to the Homework Grading Rubric before you begin this assignment.
  2. Complete the detailed instructions for each exercise included in the sections below. For each exercise, begin with a new Java project.
  3. As you write your code, provide all pertinent documentation in the form of JavaDoc comments for all classes and methods.
    1. All class-level comments mustinclude a description of the class along with your nameand links to any outside resources you used (other than the textbook) while writing your code.
    2. Each method mustalso have a comment that indicates the purpose of the method and, if applicable, the purpose of all parameters and return value.
    3. Additional in-line comments mustbe used to explain complex algorithms or unique solutions to the problem.
  4. Print, sign, and scan (or take a photo of) the Pledge of Academic Integrity.
  5. After you have completed the exercises for this assignment, submit the following via the Blackboard submission link: a digital copy of your signed pledge sheet, a compressed folder containing your code, and any additional written requirements specified below. Failure to submit a signed pledge of academic integrity for this assignment will result in an automatic grade of zero (0) for this assignment.

 

Exercise 1

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.

 

Figure 1. Graphical User Interface for Exercise 1

 

  1. 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 mustscan 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

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

 

  1. After calculating the spam score of the message, the application willdisplay the spam score to the user via a message box, similar to that shown in Figure 2.

 

Figure 2. Message box displaying the spam score

 

  1. 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 themore common formats in the U.S. are:

 

04/25/1955 and April 25, 1955

 

  1. Create the graphical interface as shown in Figure 3.

 

Figure 3. Graphical User Interface for Exercise 2

 

  1. 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 willdisplay the date that was entered in the second format shown above (April 25, 1955) in a message box similar to Figure 4.

 

Figure 4. Message box showing converted date for Exercise 2

  1. If the date was entered in an invalid format, your code mustdisplay a message box similar to that shown in Figure 5.

 

Figure 5. Message box showing invalid date error for Exercise 2

 

Submit this assignment by 11:59 p.m. on Friday of Module/Week 2.

ave written thus far. Am I on the right track?

Attachments:

Answers

(5)
Status NEW Posted 16 Oct 2017 02:10 PM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)