Program on object oriented technology, JAVA Programming

This assignment is intended to write a simple program in Java and to use the concept of Object Oriented Technology. Open a project named "MyProject" in NetBean.

Under this project create three Java classes (Java files) called Assignment, PersonalDetails and Calculate. The Assignment class will just have the Java main method. However it will use the other two classes to make the program running. Details of the PersonalDetails class are as follows

The attributes of the person are





Post Code  

This class will contain JoptionPane of Java Swing components. It will have a method called getUserInformation(). When you run the program it will ask the user to enter the details as shown below in JOptionPane snapshots.

In the same project you write another class named Calculate.

This class will have a method called the checkAge( ) method.

The checkAge ( ) method will check the person's age if the person's age is less than 25 or more than 25. If the age is more than 25 the person can join as a member

The PersonalDetails class will ask the user to enter the personal details such as Name, Age, and Address as above and use the Calculate class to determine if the user is eligible to become a member or not based on his age.

If the person is less than 25, it should print (Name, Age, Suburb, State and postcode of the person and tell the person that he can not be accepted as a member as he is less than 25 years old). If the person is greater than 25 than it should print (Name, Age, Suburb, State and postcode of the person and congratulate the person on membership acceptance).

All results should be displayed on the JoptionPane as follows:

This is an individual assignment and each student is expected to do the assignment on own.

You have to hand in both hard and soft copy for your work on or before the deadline.

Posted Date: 2/26/2013 3:10:54 AM | Location : United States

Related Discussions:- Program on object oriented technology, Assignment Help, Ask Question on Program on object oriented technology, Get Answer, Expert's Help, Program on object oriented technology Discussions

Write discussion on Program on object oriented technology
Your posts are moderated
Related Questions
What happens to the static fields of a class during serialization? There are three exceptions in which serialization does not necessarily read and write to the stream. These

What should be public? What should be private? As a rule of thumb: Classes are public. Fields are private. Constructors are public. Getter and setter methods

What are object/relational mapping integration module? Ans) Spring also supports for using of an object/relational mapping (ORM) tool over straight JDBC by giving the ORM module

Very frequently when you write code, you desire to perform distinct actions for different decisions. You can employ conditional statements in your code to do this. In JavaScript

What is Resuscitation Trolley explain their features? A proper resuscitation kit is mandatory for the ICU. In addition to trolleys that can be moved around the ICU there should

Illustrate the method to print on the GUI Example Code: Taking Input / Output So far, we learned how to print something on console. Now time has come to learn how to print

I need 3D Globe (Android) application Project Description: Seeking a talented android programmer to prepare a simple app for Android tablet display which can feature a 3D glo

Development of an Android app urgent Project Description: I am searching for some good android developer who has depth in knowledge of making an app. I am focusing on a certa

Describe Remote Objects A Remote Object is one whose functions can be called from another JVM. A remote object class must execute the Remote interface. A RMI Server is an appl

Write code in JavaScript language to show the odd numbers among 20 to 100 using FOR statement. Note: No requirement to write whole HTML program. Just JavaScript code of need p