Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position


Join the forum, it's quick and easy

Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position
Virtual Position Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

CS506 Assignment No.3 Solution Spring 2013

View previous topic View next topic Go down

GMT + 3 Hours CS506 Assignment No.3 Solution Spring 2013

Post by Victoria333 Wed May 15, 2013 6:50 pm

Assignment No. 03
SEMESTER Spring 2013
CS506- Web Design and Development
Total Marks: 20
Due Date: 20/05/2013
Instructions
Please read the following instructions carefully before solving & submitting assignment:
It should be clear that your assignment will not get any credit if:

The assignment is submitted after due date.
The submitted assignment does not open or file corrupt.
The assignment is fully or partially copied from (other student or ditto copy from handouts or internet).
Student ID is not mentioned in the assignment File or name of file is other than student ID.
The assignment is not submitted .java format.


Uploading instructions

Your submission must include:

Submit the complete working project in zip format and other if necessary files (database) to compile and run your program.

Objective
The objective of this assignment is

To give you some practice exercise of event handling and Database connectivity and perform different queries on database in Java


Important Requirements and Instructions:

You are allowed to use Netbeans IDE for this assignment.
Assignment due date is May 20, 2013.
We will not accept assignment through email in any case. Be Careful


Deadline: Your assignment must be uploaded/submitted at or before 20/05/2013.
For any query about the assignment, contact at cs506@vu dot edu dot pk
GOOD LUCK

Question:
HRM is the management of employees within an organization. At present stage all the Human Resource (HR) work for JS Group of Industries is managing manually. Each time to change employee information, the manager needs to update the record manually in different locations/ places, which is a tedious job for the HR manager and prone to errors.
As in the second assignment we had designed different GUIs for HR Manager of JS Group of Industries. So in this assignment we are going to connect the GUI’s with database and perform different event handling.

Solution Guidelines:
First you have to create a database in MS Access named as “Employee”.
There should be a table in “Employee” database named as “Personal Information”
Set Data source name (DSN) for your database.
You can also get help from the 2nd assignment solution for GUI’s creation.



Note:

Submit the complete working project in zip format
Event handling and database connection must be work; otherwise you will get zero marks.
Your code must be enough for 20 marks










Sample Output:
When you run the program:
User fill the form and click on “Save” button, then all the information will be saved in “Personal Information” table of “Employee” database








When User click “Search Personal Information” tab, then:
User provides the ID that he/she wants to search. As a result all the data that is stored in the database will be display.









When user click “Delete Personal Information” tab, then:
The user provides ID and all the records of that ID will be deleted from the database “Personal Information” table.
Victoria333
Victoria333
Monstars
Monstars

Scorpio Snake
Posts : 267
Join date : 2013-05-12
Age : 34
Location : Victoria
Woot

Back to top Go down

GMT + 3 Hours Re: CS506 Assignment No.3 Solution Spring 2013

Post by Victoria333 Wed May 15, 2013 6:51 pm

This assignment is tough one...this is how you can do it:-
Required Softwares:- NetBeans IDE & MS Access-2007
1. Make GUI as shown in Assignment (Same Tabbed panes as in Assign-2 using NetBeans)
2. Make Database Employee in MS Access with field names as shown in GIF file given in assignment.
3. Create Database DSN using Control Panel>>Administrative Tools>>System DSN, Follow the procedure explained in lecture.
4. On first tab (Personal Information) of GUI there is 'SAVE' button, we have to add code to this button, when 'SAVE' button is pressed then database connection with MS Access should be established and then create Statement, Connection and ResultSet objects as explained in Lec-16.
5. Then use rs.updateString(1,"SomeString") command to update the value from GUI to MS Access Database, Same procedure for other fields.
6. Close the connection, as already explained in lec-16
7. Similarly, when "Cancel" button is pressed we have to edit CancelButton ActionListener method to reset all the text fields.
8. To search ID we can use same ResultSet object along with for loop to scan all the records in MS access database and display the record when found.
9. To delete record, first we search the record and then use rs.deleteRow(); command to delete it.
and thats all...Complete solution of assignment is given above, now all have to understand and do it...Wish you all best of luck...
Victoria333
Victoria333
Monstars
Monstars

Scorpio Snake
Posts : 267
Join date : 2013-05-12
Age : 34
Location : Victoria
Woot

Back to top Go down

GMT + 3 Hours Re: CS506 Assignment No.3 Solution Spring 2013

Post by ChIntoo Wed May 15, 2013 6:53 pm

[You must be registered and logged in to see this image.]1 aur assignment aa gae
ChIntoo
ChIntoo
Monstars
Monstars

Posts : 92
Join date : 2011-02-13

Back to top Go down

GMT + 3 Hours Re: CS506 Assignment No.3 Solution Spring 2013

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum