We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

 

Uploading instructions:

 

  • Your assignment should be in .zip /.rar format.
  • Save your assignment with your ID (e.g. bc000000000.rar).
  • No assignment will be accepted through email.

 

Rules for Marking:

 

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, execute or file is corrupted.

·         Your assignment is copied from internet, handouts or from any other student

      (Strict disciplinary action will be taken in this case).

 

Assignment

 

 

Question:     (20 Marks)

 

You are required to write a program in java that will have three classes i.e. Person, Student and Driver.

 

1.  Person will be the super / parent class and it will have four data members i.e. CNIC, Name, Date of Birth and Address. Person class will have a parameterized constructor (that will initialize all the data members with the given values) along with getters and setters for each data member that will get and set the values of data members of the class.

 

2.  Student will be the child class and it will be inherited from Person class. It will have three data members i.e. Student ID, Study Program and Email. Student class will also have a parameterized constructor (that will initialize all the data members with the given values), getters and setters for each data member (that will get and set the values of data members of the class).

 

3. In Driver class, you’ll design a graphical user interface (GUI) that will have various text fields (like CNIC, Name, Date of Birth, Address, Student ID, Study Program and Email) and two buttons i.e. “Save Record” and “Retrieve Record”. 

 

When user clicks “Save Record” button then take all the values entered by user in text fields and initialize an object of Student class with these values. Now, pass this object to “saveRecord” method and store all these values in MS ACCESS database (the name of database must be same as your own VU ID i.e. BC00000000.accdb).

 

And, when user clicks on “Retrieve Record” button then ask user to enter Student ID or CNIC (using JOptionPane.showInputDialog). Now, search this ID/CNIC in the database. If this ID/CNIC exists in database then display all information against this ID/CNIC (by using JOptionPane.showMessageDialog). Otherwise, show message that no such record exists in database against this ID/CNIC.

  

You also have to handle exceptions properly in your program.

 

 

After completing your code, execute your java file(s) on command prompt and enter students’ records to store them in database (the name of database must be same as your own VU ID i.e. BC00000000.accdb). You must have to provide your own information while entering first student’s record otherwise marks will be deducted accordingly. Your database must contain at least one record (containing your own information i.e. your name, id, study program and etc.). Now, compress your java file(s) and database file using winzip or winrar and upload it on VULMS.

 

 

 

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 11926

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

downgrade your java go to c:program files>java and tell me is it jdk 1.8 or something else

sent to ur email 

Download the Code.....

Make little changes mention in the readMe.txt file.

And submit your asignment.....

No Need to run....

https://www.youtube.com/watch?v=MN3KWo114XI

sir ab is error ko kesy thek krna ha

Attachments:
Jdk 10 uninstall ker k jdk 8 download kren then error ni aye ga
Jdk 10 uninstall ker k jdk 8 download kren then error ni aye ga

sir ye to bohat kam kharab ho jay ga sir ucan access isi liay to intall kia he k wo jdk jo marzi ho usy chalay then why

sir wo hi use kr rha hun 8 wala 10 wala nai ha mery pas but phir b error a rha ha ye

noman sir compiling ko chorh dain bs sari file winrar me rakh k submit krwa dain

dont worry mera b yehi error a raha he is ka matlab code thk he ucanaccess me masla he jdk me nai

please mujhy cs506 ki asignment dy do

Ya error a raha ha.

RSS

Latest Activity

+ !!!R❤G liked + !!!R❤G's discussion Ikhalaq ki ahmiyat
45 minutes ago
+ !!!R❤G posted a discussion
45 minutes ago
+ !!!R❤G liked UMER UMER's discussion What is Love?
1 hour ago
+ !!!R❤G liked + IUUOƆƎUT +'s discussion کہو تو لوٹ جاتے ہیں ۔ ۔ ۔
1 hour ago
+ !!!R❤G liked + IUUOƆƎUT +'s discussion How Can You Get Secured of Being Banned On Ning
1 hour ago
+ !!!R❤G liked UMER UMER's discussion What is Love?
1 hour ago
+ !!!R❤G liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion Happy Birth Day Zargiyah (Tasha <3)
1 hour ago
+ !!!R❤G liked +! ! ! "Asнтαℓғαн's discussion Happy wala Birthday tashy patashy ❤ (Tasha)
1 hour ago
+ !!!R❤G liked 彡JK彡 ❤️'s discussion Don't Look for Perfection........ LOVE lies in imperfection
1 hour ago
+ !!!R❤G liked 彡JK彡 ❤️'s discussion If you have sOmething stupid to saY............
1 hour ago
+ !!!R❤G liked Waseem Khan's discussion Edu 402 Assinment No. 1 Solution
1 hour ago
+ !!!R❤G liked Moji's discussion MCM301 assignment no 1
1 hour ago
+ !!!R❤G liked + M.Tariq Malik's discussion VU Students Reserves The Right to Delete Any Profile On the Site
1 hour ago
+ !!!R❤G and + ! ! ! ! ! ! ! ! ! AG are now friends
1 hour ago
Zain Arshad replied to + M.Tariq Malik's discussion ENG201 Business and Technical English Writing Assignment No 01 Fall 2019 Solution & Discussion in the group ENG201 Business and Technical English Writing
1 hour ago
Muhammad Rashid liked + M.Tariq Malik's discussion ACC501 GDB Fall 2019 Solution & Discussion
1 hour ago
Sucana Shafiq liked + M.Tariq Malik's discussion CS101 Mid Term Papers Spring 2019 & All Solved Past Papers, Solved MCQs & Helping Material
1 hour ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS302 Digital Logic Design Assignment No 02 Fall 2019 Solution & Discussion in the group CS302 Digital Logic Design
2 hours ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion CS302 Digital Logic Design Assignment No 02 Fall 2019 Solution & Discussion
2 hours ago
+ ! ! ! ! ! ! ! ! CuTe DrAmA updated their profile
2 hours ago

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service