CS506 Assignment No 1 Solution Fall 2017:
Assignment Total Marks: 20.
You Can Also Download Solved Mid Term Papers, Short Notes, Assignment Solutions, Lecture Wise Questions Answers Files, Solved MCQs, Solved Quiz, Solved Mid Term Subjective Papers, Solved Mid Term Objective Papers, Solved Final Term Objective Papers, Solved Final Term Subjective Papers from VU Ki Duniya for Preparation of Mid Term Papers.
CS506 Complete Assignment No 1 Solution Fall 2017:
Assignment No. 01
Semester: Fall 2017
CS506 – Web Design and Development
Due Date: 9/11/2017
Total Marks: 20
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 contain four classes.
1. The name of super class should be same as your own VU ID (like BC00000000) and it will have three data members i.e. stdId, stdName and studyProgram. BC00000000 class must have following methods:
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 class.
A display function that will display all the data members of the class.
2. The name of second class should be HomeBasedStudent and it will be inherited from super class (BC00000000). It will have two data members i.e. homeAddress and phoneNumber. HomeBasedStudent class must have following methods:
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 class.
A display function that will override the display() method of BC00000000 class and must call display() method of superclass within overridden method before printing data members of HomeBasedStudent class.
3. The name of third class should be CampusBasedStudent and it will also be inherited from super class (BC00000000). It will have three data members i.e.campusName, campusAddress and phoneNumber. CampusBasedStudent class must have following methods:
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 class.
A display function that will override display() method of BC00000000 class and must call display() method of superclass within overridden method before printing data members of CampusBasedStudent class.
4. The name of fourth class should be Driver which will contain the main method. In main method, if you are a home based student then create an instance of class HomeBasedStudent and initialize all the data members with your own VU ID, name, study program, home address and phone number.
And, if you are campus based student then create an instance of class CampusBasedStudent and initialize all the data members with your own VU ID, name, study program, campus name, campus address and phone number.
After that, call the display method using the object of relevant class. Your output should be displayed like.
In case of home based student:
VU ID : BC0000000
Name: Ali
Study Program: BS CS
Home Address: Model Town Lahore
Phone Number: 1234567
In case of Campus based student:
VU ID : BC0000000
Name: Ali
Study Program: BS CS
Campus Name: VLHR01
Campus Address: Faisal Town Lahore
Phone Number: 1234567
Important Regarding Submission:
You must have to provide your own information while initializing object of HomeBasedStudent or CampusBasedStudent otherwise zero marks will be awarded. After completing your code, execute your java file(s) on command prompt and take the screenshot of the output/result. Now, compress your code and screen shot 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. |
Deadline:
Your assignment must be uploaded/submitted on or before 9th November 2017.
You may Also Like:
- CS605 Assignment Solution Fall 2017
- CS606 Assignment Solution Fall 2017
- CS201 Assignment Solution Fall 2017
- CS101 Assignment Solution Fall 2017
Download Complete Solution:
Download CS506 Assignment Solution by Clicking the Download Button Below in just single Click.
Post a Comment