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

Name

Age

Suburb

State

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
Java Programming 1. Write a program in Java to find the highest of any five numbers. How do you compile and execute this Java program? 2. Write a program to explain the Exce

Enumerate the concept of write once run anywhere - JAVA Java has introduced concept of WORA (write once run anywhere). When you write a java program it is called source code of

I just finished a small tutorial on JSP and servlet now I was looking for some assignments so that I can try my hands on

1) Listing of the source code ( named Rainfall.java ) for your program 2) Two sample output/execution/runs of your program Optional Group Work: This assignment may be done in

Writing a report

Mike sells on the average 15 newspapers per week (Monday – Friday). Find the probability that 2.1 In a given week he will sell all the newspapers [7] 2.2 In a given day he will se

Android app for evaluating of distance Project Description: The request is to prepare an app for Android. The application needs to run on tablet (7 "or larger) and the layout

1) Around : org.aopalliance.intercept.MethodInterceptor 2) Before : org.springframework.aop.BeforeAdvice 3)  After : org.springframework.aop.AfterReturningAdvice 4) Throws

The AOP module is used for developing aspects for our Spring-enabled application. Much of the support has been given by the AOP Alliance in order to ensure the interoperability amo

What are Commonsense Guidelines to prevent viruses? Discuss about Antivirus as well. Commonsense Guidelines to avoid viruses are as follows: 1. Do not open attachment of unwant