Sponsored links

Saturday 27 April 2013

CS506 Web Design and Development vu current Assignment 1 Solution 27th April 2013


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.

No comments:

Post a Comment