CS506 Assignment No 02 Solution Due Date: 24-11-2017

By | November 23, 2017
(Last Updated On: November 28, 2017)

cs506 assignment

CS506 Assignment 2 Complete Solution 2017


Download our Android App of Midterm Past Papers “CLICK HERE TO GET APP”


CS506 Assignment No 02 Solution Fall 2017

Create a new database in MS Access and add a table in the database. The name of database should be same as your own VU ID (like BC0000000) and the name of table should be Student. Student table will have four attributes i.e. ID, NAME, ADDRESS and PROGRAM.

Now, design a graphical user interface in java as given below (You must have to mention your own VU ID in title as shown in screenshot).

Your program should perform following tasks:


1. Add new record in database

Whenever user enters some new data in text fields and clicks “Add Record in Database” button, all the text fields’ data should be stored in Student Table.


2. Search a record from database on the basis of ID and display it on screen

Whenever user enters any ID in text field and clicks “Search Record from Database” button, your program should fetch this record from database. If this ID is available in database then display the record of this ID in the mentioned text fields otherwise show an error message that no such record is available.

Important Regarding Development:

If you are using JDK1.8 or above then you’ll have to use ucanaccess driver to connect to MS Access database. In this case, I’ll suggest you to view the following tutorial.


Following links will be helpful in creating new database in MS Access.




Important Regarding Submission:

After completing your code, execute your java file(s) and take the screenshot of the output/result. Now, compress your code, database file and screenshot of the output using winzip or winrar and upload it on VULMS.


NOTE:  Do not put any query on MDB about this assignment, if you have any query then email at cs506@vu.edu.pk.  Furthermore, if any student found cheating from any other student or from online forums then he/she will be awarded ZERO right away and strict disciplinary action will be taken against the student

You can download the CS506 Web Design and Development Assignment 2 Solution file from here

Download our Android App of Midterm Past Papers “CLICK HERE TO GET APP”


Download our Android App of Midterm Past Papers “CLICK HERE TO GET APP”