Program on object oriented technology, JAVA Programming

Assignment Help:

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.


Related Discussions:- Program on object oriented technology

Want an expert with knowledge of uml diagrams, Want an expert with knowledg...

Want an expert with knowledge of UML diagrams and writing experience for pages writing including diagrams. This project needs 3-4 pages of technical writing about tickets reserv

What is an xml namespace?, Question 1 What is Response Redirection? Explai...

Question 1 What is Response Redirection? Explain in brief Question 2 What is JDBC? Explain Question 3 Write a short note on Expressions Question 4 What is an XML na

Activity diagram, The statechart diagrams and activity diagram are related ...

The statechart diagrams and activity diagram are related in a sense that statechart diagram refers on object undergoing a transition process and an activity diagram refers on the f

Banknote ocr register anti fraud, Project Description: Introduction: ...

Project Description: Introduction: SID C.A. (integradores) is a software company in Venezuela 15 years ago, and we are exploring the possibility of making mobile developments

What is dispatchaction, The DispatchAction class is used to group related a...

The DispatchAction class is used to group related actions into single class. Using this class, you can have a method for every logical action compared than a one executes method. T

Design a game in java, The game of Kala is played on a rectangular board: ...

The game of Kala is played on a rectangular board: In front of each player are six pits numbered 1 to 6 (called the 'side pits'). To the right of a player's side pits is a

Define class diagram , Class diagram technique is vital within Object Orie...

Class diagram technique is vital within Object Oriented functions. Class diagrams illustrate the kinds of objects in the system and the several static relationships among them. Cl

Arrays, 1. Arrays and working with arrays

1. Arrays and working with arrays

Moving test, After refactor the main class to become abstract class, I want...

After refactor the main class to become abstract class, I want to move test method from tset clas of main class to subclass, how to do that?

Need sms application server, Project Description: A java application is ...

Project Description: A java application is required with the subsequent features 1. Ability to use GSM Modem (and/or Mobile phones) or SMPP to send and receive SMS messages

Write Your Message!

Captcha
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