CS506 Assignment No. 01 Spring 2013 Web Design and Development Solution

No Comments

Assignment No. 01
SEMESTER Spring 2013
CS506- Web Design and Development



Instructions
Please read the following instructions carefully before solving & submitting assignment:
It should be clear that your assignment will not get any credit  if:
o        The assignment is submitted after due date.
o        The submitted assignment does not open or file corrupt.
o        The assignment is full or partially copied from (other student or ditto copy from handouts or internet).
o        Student ID is not mentioned in the assignment File or name of file is other than student ID.
o        The assignment is not submitted .java format.

Uploading instructions

Your submission must include:

  1. All the source code (.java files) and other if necessary files to compile and run your program.
  2. Place all the files (Employee, LabourCard, HealthCard and Driver classes) in a Zip file and Upload it on VULMS.

Note:Use Notepad or Notepad++ for coding and JDK package for java source code compilation and running (A video tutorial of JDK installation and configuration is given in course download section)

Objective

The objective of this assignment is
o   To give you some practice exercise of file handling and understanding use of it in java console programs.

Important Requirements and Instructions:
  1. You are not allowed to use any IDE tool like Netbeans in this assignment.
  2. Assignment due date is May 02, 2013. Extra grace day (May 03, 2013) is only if last date has any problem (like server gets down or files not uploading).  Any lame excuses will not be accepted after due date. 
  3. We will not accept assignment through email in any case. Be Careful 

Lectures Covered: This assignment covers Lecture # 1-8
Deadline
Your assignment must be uploaded/submitted at or before 02/05/2013.


For any query about the assignment, contact at cs506@vu.edu.pk
GOOD LUCK



Question:                                                                                              
You have to develop a simple console base application, which reads an input from the user and based on user input, insert different information in different text files and also display on console.

Solution Guidelines:
  1. Create Emplyee.java which will contain employee information (id, name, Joining Date, Designation, Address, Phone number and email address). Constructor and setter/ getter functions implementation should be defined in the Employee class.
  2.  Create LabourCard.java which will contain labourcard information (Id, EmpId, IssueDate, ExpiryDate). Constructor and setter/ getter functions implementation should be defined in the LabourCard class.
  3. Create HealthCard.java which will contain healthcard information (Id, EmpId, IssueDate, ExpiryDate). Constructor and setter/ getter functions implementation should be defined in HealthCard class.
  4. Create Driver.java which will contain your main program. In the main program you are required to initialize overloaded constructor (Parameterized constructor) to set the values of data members of each class. Through Employee class overloaded constructor (Parameterized constructor) all the data members of Employee class should be initialized. Then insert the values of data members of Employee class in a text file “Employee.txt”.  Similarly you should initialize other class data members through their respective overloaded constructor i.e. constructor of LabourCard and HealthCard and insert the data members value in prospective text files and also display on console.
  5. You have to create text file for each class through code. For example, for employee class you have to make text file named as “Employee.txt” and for LabourCard class you have to make text file named as “LabourCard.txt” and similarly for HealthCard class you have to make text file named as “HealthCard.txt”.


Note:
  • Attached with this assignment statement is a file “CS506 Assignment No.1 Demo.gif” which shows sample working output of the assignment.
  • Snapshots of the desired solution along with its working are also given in the following pages.



Note: Your code must justify enough for 20 marks.






Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment