.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....  

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

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com? Search 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.

 

 

 

Share This With Friends......


How to Find Your Subject Study Group & Join.

Find Your Subject Study Group & Join.

+ Click Here To Join also Our facebook study Group.


This Content Originally Published by a member of VU Students.

+ Prohibited Content On Site + Report a violation + Report an Issue

+ Safety Guidelines for New + Site FAQ & Rules + Safety Matters

+ Important for All Members Take a Look + Online Safety


Views: 11719

See Your Saved Posts Timeline

Replies to This Discussion

email me ur details ahsan36@gmail.com
koi bhai pls meri assginment kar day..
ramzan hai.mein jhoot nahe bol rahi,mere pass software install nahe hai..plz koi insaan help kar day
mc140402098@vu.edu.pk

is id par email kar day..thnx ho ge bht
I will mail you in morning ok

ali bhai plz mjy bhi assignment mere data k sath bna k send kr de plz bcuz mere pass software nhi h

ma93324@gmail.com

MasoodAhmad

bs130400348

 + ! ! ! Ali Waris!

ali bhai plz mjy bhi assignment mere data k sath bna k send kr de plz bcuz mere pass software nhi h

mc170202186@gmail.com

asad.rafiq42@hotmail.com

mc170202186

Asad Rafique

lahore

35202-09742-57-9

MIT

12-04-1994

sir abhi kar dain..kal date expire ho jaye ge..
Kal extended day hai don't worry

ali bhai plz mjy bhi assignment mere data k sath bna k send kr de plz bcuz mere pass software nhi h

mc170202186@gmail.com

asad.rafiq42@hotmail.com

mc170202186

Asad Rafique

lahore

35202-09742-57-9

MIT

12-04-1994

sir plz mujy b solution file send kr den its my last subject so kindly help me sir

bahi mughy b kar dana suba pliz
bc140402080
name Muhammad Qasir Ghafoor
dob 08.04.1992
bscs
email qasir392@gmail.com
tnx sir,morning ko kar dijye ga..ap ka ahsaan ho ga

RSS

Donation

A quality education changes lives & start with you.

Latest Activity

Forum Categorizes

Job's & Careers (Latest Jobs)

Admissions (Latest Admissons)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

VU Subject Study Groups

Other Universities/Colleges/Schools Help

    ::::::::::: More Categorizes :::::::::::

Members of The Week

Member of The Month

1. Nida arshad

Lahore, Pakistan

© 2018   Created by + M.TariK MaliC.   Powered by

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