Development of a graphical user interface

Assignment Help JAVA Programming
Reference no: EM13315624

1. To understand actual communication with an SMTP server can be achieved using TCP Sockets.

2. To understand the development of a graphical user interface (GUI) and use of event handling.

3. To send an actual email using your GUI client

- To build a simple Pretend Mail Client (PMC) that prompts the user for typical email fields and then outputs SMTP protocol messages to the screen.
- To understand and construct SMTP protocol messages.
- To understand OOP design.

Write a program (e.g. called PMC.java). This program will perform the following tasks:

1. The following command is used to run your program and accept console input (i.e. input from the keyboard) for email fields and message body,

java MyPMC
For example, if the user provides information for the fields of MAIL FROM, TO, SUBJECT, EMAIL-TEXT,
the output format should be as follows:
HELO swin.edu.au
MAIL FROM: [email protected]
RCPT TO: [email protected]
DATA
Subject: Hello
This is message 
This output should be displayed to the screen.

2. Accept console input of more complicated emails that contain various optional combinations of extra fields, in particular Carbon Copy ("CC:"), Blind Carbon copy ("BCC:"). For this task, assume that there is at most one email address in each field. That is, if the field of CC and BCC are also provided by the user (eg. CC to [email protected] BCC to [email protected]), the output format should be:

HELO swin.edu.au
MAIL FROM: [email protected]
RCPT TO: [email protected]
RCPT TO: [email protected]
RCPT TO: [email protected]
DATA
Subject: Hello
CC: [email protected]
BCC: [email protected]
This is message .

You need to check if the field of CC/BCC is empty (i.e. check if the user enters an email address of CC/BCC). If the fields of CC and BCC are not provided by the user, the output should be that one shown in Task 1.

3. Allow multiple comma separated addresses for each relevant field. For example, the user is allowed to enter more than one email address for the field of TO (e.g., [email protected],[email protected]). The output for this field should be:

RCPT TO: [email protected]
RCPT TO: [email protected]

4. Allow the user to send more than one email without having to restart the PMC.

5. Create a message class that includes fields of MAIL FROM, TO, CC, BCC, SUBJECT, EMAIL-TEXT. It should also include the methods of set and get for each field, e.g. for the field of From (i.e. for MAIL FROM), it should have the methods: setFrom and getFrom.

Use this class to declare 10 objects, e.g. Message [] m= new Message[10]; m[0] is used to store the first email you sent, m[1] is used to store the second email you sent, and so on. Just before exiting, your program should output the emails that you have sent. The format for each email should be the same as described in Tasks 1-3.

6. Your PMC should consist of at least 2 classes.

a. main class to get input and to control the program
b. message class 

Reference no: EM13315624

Questions Cloud

Determine the minimum theoretical wall thickness : compressed nitrogen (140 lbm) is stored in a spherical tank of diameter D = 2.5 ft @ temp. of 77 degrees Fahrenheit . what is the pressure inside the tank? if the max allowable stress is 30 ksi, find the minimum theoretical wall thickness.
Estimate the channel roughness in trapezoidal channel : flow of 600cfs is measured at a depth of 3.4 ft in trapezoidal channel with bottom width of 25ft and side slopes of 3:1(h:v). The channel reach has a slope of .002. Estimate the channel roughness.
Determine the average power transmitted by the wave : A fellow student of mathematical bent tells you that the wave function of a traveling wave on a thin rope isy(x,t)= 2.10mm cos[( 6.96rad/m )x+( 744rad/s )t]. Determine the average power transmitted by the wave
Predict aqueous phase equilibrium concentration of phenan : Predict the aqueous phase equilibrium concentration of phenanthrene at 25*C if the values for this compound are Cs = 1.1 mg/L, P^v = 1.6 x 10^-7 atm, KH = 4.0 x 10^-5 atm*m^3/mol, and logKow = 4.52.
Development of a graphical user interface : Understand actual communication with an SMTP server can be achieved using TCP Sockets and understand the development of a graphical user interface (GUI) and use of event handling.
Calculate the present value of the bond : 1. Consider a one-year discount bond that pays $2,000 one year from now. If the rate of discount is 3 percent, calculate the present value of the bond.
Estimate the average time between collisions : Carbon disulfide (CS2) has a vapor pressure of 300 Torr at room temperature, estimate the average time between collisions that the gas is experiencing inside the test chamber
What is the wavelength of the third harmonic for this wire : A vertical, 1.30-m length of 18-gauge (diameter of 1.024 mm) copper wire has a 160.0-N ball hanging from it. What is the wavelength of the third harmonic for this wire
Describe how free market features : Describe how free market features could be introduced to help alleviate the problem

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a gui version of the game mini sudoku.

Each row has the numbers 1 to 6,Each column has the numbers 1 to 6,Each group of 2 rows by 3 columns also has the numbers 1 to 6.

  Practice using recursion with data structures

Write a recursive method in this class called hasSameStructureAs(BinaryTree tree) that returns whether or not a tree has the same structure as another tree.

  Write java program to read in sequence of hourly temperature

Write down Java program which reads in sequence of hourly temperature readings over 24-hour period using arrays. Your program must find and show maximum and minimum temperatures.

  Write a recursive method called maxsum

write a recrusive method called maxSum that accepts a list of integers. L, and an integer limit n as parameters and use backtracking to find the maximum sum that can be generated by adding elements of L that do not exceed n.

  Data structures and algorithms

Code analysis and programming.

  Create an application that demonstrates the use of the class

Create an application that demonstrates the use of the classes. Save the files as Player.java, Child.java, Actor.java, Musician.java, and UsePlayer.java.

  Specify, design and implement a class

Specify, design and implement a class that can be used to hold information about a musical note. Test it with an appropriate driver program.

  Regular expression that selects lines

Write a regular expression that selects lines containing the html BR tag. The rules for this tag are that, like all html tags, it starts with . In between are the letters b and r in that order

  Trade-offs between quantity and quality of production

Are there inevitable trade-offs between quantity and quality of production and in what ways can job analysis and job redesign help manage there trade-offs?

  Implementation activities of software development

Analysis, design, and implementation activities of software development

  Write a java program called salesinfominer

Write a Java program called SalesInfoMiner that reads in a file of products, stored in text format. The program must then read in information about past sales transactions and output all the products to a new file, sorted by product description,..

  Java''s type int has limit onhow large aninteger it can store

Java's type int has a limit on how large an integer it can store. This limit can be circumvented by representing an integer as an array of digits. Write an interactive program that adds two integers of up to 50 digits each.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd