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

 

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

Sir es file may error a raha ha. Student ka kuch

Attachments:

Hello bahi jaan Iss main driver.java file nai hai jo solutin app ny upload kiya hai 

Bahi jaldi send kar dain

Anyone have solution of cs506 assignment no 2

hello

Aslam-o-Alaikum KOI MERI ASSIGNMENT#2 CS506 TO BANA DE FRIENDS TIME SHORT HY

MC160202553 .MUHAMMAD NADEEM. MAIL ID MC160202553@vu.edu.pk.

 

ok MC160202553 check your mail id

fiaz bhai mujhe b bna do assignment

koi proper solution to btao dimag khapa khapa k b ho gai :(

Mujy bna k dy skty bro ??

Mc150402760

koi to proper solution bta de.. ya phir meri trah sare e free hen

netbeans bhi kar k daikh liya jdk bhi par kuch bhi nai run ho raha plz help otherwise zero will be marked. :(

plz cs506 ki assignment to bana den

MC160403420 .NAVEED AKHTAR. MAIL ID MC160403420@vu.edu.pk

RSS

Latest Activity

+ ! ! ! ! ! ! BLaiRe ! !+ liked + Iuuoɔǝut +'s discussion یہ محبت ہی میری خطا ہوگئی
1 minute ago
+***piya o ry piya***+ replied to +***piya o ry piya***+'s discussion eng301 solution chahiyaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1 minute ago
MUHAMMAD USMAN replied to + M.Tariq Malik's discussion MGT611 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group MGT611 Business & Labor Law
5 minutes ago
Profile IconMUHAMMAD USMAN and Amina Azeem joined + M.Tariq Malik's group
5 minutes ago
+ Iuuoɔǝut + posted a discussion
6 minutes ago
MUHAMMAD USMAN replied to + M.Tariq Malik's discussion CS606 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group CS606 Compiler Construction
6 minutes ago
MUHAMMAD USMAN joined + M.Tariq Malik's group
6 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion FIN622 Corporate Finance GDB Fall 2019 Solution & Discussion in the group FIN622 Corporate Finance
10 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion FIN622 Corporate Finance GDB Fall 2019 Solution & Discussion
10 minutes ago
+ M.Tariq Malik added a discussion to the group FIN622 Corporate Finance
12 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS205 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group CS205 Information Security
14 minutes ago
Annu posted a discussion
15 minutes ago
Fahad replied to + M.Tariq Malik's discussion CS205 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group CS205 Information Security
17 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion STA406 Statistical Inference Assignment No 01 Fall 2019 Solution & Discussion in the group STA406 Statistical Inference
18 minutes ago
彡Tweety彡 ❤️ liked +¢αяєℓєѕѕ gιяℓ's discussion Kabhi Pasand Na aya tu..... :-P
22 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion ENG510 Sociolinguistics Assignment No 01 Fall 2019 Solution & Discussion in the group ENG510 Sociolinguistics
22 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion ENG510 Sociolinguistics Assignment No 01 Fall 2019 Solution & Discussion in the group ENG510 Sociolinguistics
22 minutes ago
彡Tweety彡 ❤️ liked +¢αяєℓєѕѕ gιяℓ's discussion Khuda Aur Insan
22 minutes ago
彡Tweety彡 ❤️ liked +¢αяєℓєѕѕ gιяℓ's discussion کچھ نہیں کچھ بھی نہیں
22 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion ENG510 Sociolinguistics Assignment No 01 Fall 2019 Solution & Discussion
22 minutes ago

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

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