Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-13-2008, 02:28 PM
Member
 
Join Date: Mar 2008
Posts: 1
maneibr is on a distinguished road
need help to write Program in JAVA
Create a class call it Student that will contain the student information and the appropriate methods to manipulate student info.
The student information should include the following:
Student name
Student ID
Student home phone number
Student mobile phone number
Date of birth

Write a client program that is menu driven. It should display the following menu for the user:

Select your choice:
1- Fill the list with student info.
2 - Add a new student to the list.
3 - Update the information of a given student.
4 - Delete a student from the list.
5 - Display the information of a given student.
6 - Display the information of all the students.
7 -Exit.

Implement the list using Vector.
If the user selects 1 from the menu, if the vector was not created, the program should create the vector and fill it with the information of all students from the keyboard. If the user selects 1 from the menu and there was a vector created, then the program should display a warring message for the user: “this action will erase the content of the current list, are you sure you want to erase the current list Y/N? ”. If the user enters Y or y a new vector should be created and filled with data from the keyboard. If the user enters N or n, nothing should be done.
After the user enters the data, the program should sort the vector according to student ID. Use one of the sorting algorithms that we have seen in the lecture.

If the user selects 2 from the menu new student should be added to the vector in its proper location. (DO NOT add to the end of the vector and then call a sort method)

If the user selects 3 from the menu, the program should ask the user for the student id and if the student exists in the list, the program should display for the user a menu with two choices:
1- Update the name.
2- Update the home phone number.
3- Update the mobile phone number.
4- Exit.
And let the user enters the new data and do the update.

If the user selects 4 from the main menu, the program should ask the user for the student id and if the student exists in the list, the program should delete this student from the list.
If the user selects 5 from the main menu, the program should ask the user for the student id and if the student exists in the list, the program should display the information of this student on the screen.
If the user selects 6 from the main menu, the program should display the information of all students on the screen.
If the user selects 7 from the main menu, the program should terminate.

E-mail : maniya_1987@hotmail.com
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-13-2008, 03:28 PM
aibtus's Avatar
Member
 
Join Date: Mar 2008
Location: Randburg, South Africa
Posts: 9
aibtus is on a distinguished road
Send a message via Yahoo to aibtus Send a message via Skype™ to aibtus
I am not saying that that looks like your assignment or sating that you are in college.... But, Are you sure you have totally failed to start even a bit of this Homework?

At least if there was some bit of code and exceptions thrown, I would be compelled to help. At least try something and we assist, else we release degreed 'non-programmers'
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute an External Program through Java program Java Tip java.io 0 04-04-2008 04:40 PM
How to write a JAVA program to mesure ping delay..? sacr83 Networking 1 02-15-2008 06:07 PM
How to execute an External Program through Java program JavaBean Java Tips 0 10-04-2007 11:33 PM
Need to write a program to execute a list of system commands mdthahir New To Java 2 08-07-2007 09:22 PM
Need to write a program to execute a list of system commands mdthahir Networking 1 07-27-2007 07:46 PM


All times are GMT +3. The time now is 12:48 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org