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 files as you receive in your LMS, So it can be discussed/solved timely. Files Upload 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

reply krien gy please

Sir I am soldier In Pak Pak Army and doing duty on ops Radd-ul-fassad. I have not any resources and time to complete cs506 assignment. Please can you help me??

Please provide me complete solution file with my ID : MC160403115 on my g.mail id .. abdullahbhai888@gmail.com

I shall be very grateful to you for this favour. Please sir

Bhai kon c core ha ap ki????

can you give me the solution file plz

bhai ya kis assignment ksi main bnani hai ya to bta do yr plzzzzzzzz

Plzzz help me

Plzzz  help me

<iframe width="475" height="267" src="https://www.youtube.com/embed/bGCyvR0B1i4" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

i m making video will upload solution files also dont worry guys

for solution keep visiting tonight solution will be uploaded

RSS

Latest Activity

Profile IconMuhammad Ali, Mazahir, Muhammad Jamshaid Hussain Bhatti and 12 more joined Virtual University of Pakistan
7 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked + M.Tariq Malik's discussion Waqar Files For Mid Term Past Papers
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked + M.Tariq Malik's discussion VU All Handouts Power Point Slides ( Handouts PPTs)
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked 彡JK彡 ❤️'s discussion Army Public School and College Mangla........ Staff required!!
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked shan's discussion project cs619
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked UMER UMER's discussion images111.jpg
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked + Iuuoɔǝut +'s discussion TERMPAPER ON ‘FINANCIAL SYSTEM OF BANGLADESH’.
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked +¢αяєℓєѕѕ gιяℓ's discussion Mera tu Mohabbat se aitbar.............:-P
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked +¢αяєℓєѕѕ gιяℓ's discussion Hazam Kary....!
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked +¢αяєℓєѕѕ gιяℓ's discussion Kashish Aur Mohabbat
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked + M.Tariq Malik's discussion Latest Scientifically Formula To Success
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked + Iuuoɔǝut +'s discussion محبت چپ نہیں رہتی
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked + Iuuoɔǝut +'s discussion بعد مُدت اُسے دیکھا، لوگو
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked + M.Tariq Malik's discussion Everyone Freelancer Must Watch it - Most important video for Every fiver user
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked + M.Tariq Malik's discussion Criteria Required for Award Badges, Featured Members & Moderators
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked zuha shah's discussion assigment
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked Aijaz khan's discussion CS510 Assignment Fall 2019 Need Solution
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked +¢αяєℓєѕѕ gιяℓ's discussion For All Members Add your Discussion in Study Group.....! StepWise
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked ٢ دن's discussion زندگی گزارنے کا فارمولا
16 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked +¢αяєℓєѕѕ gιяℓ's discussion چاۓ
17 minutes ago

Today Top Members 

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

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