Spring 2021 - CS506 - 1

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

Assignment No.

01
Total Marks: 20
SEMESTER Spring 2021
CS506- Web Design and Development Due Date: 18/05/2021
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. If and only if there are multiple files to submit, place all the files in a Zip file and Upload it on VULMS else
only source code file is required to be submitted.

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. Use text file (employees.txt) attached with assignment file. Your code should work with given attached
text file.
3. Use text file and java files in same directory.
4. Create Employee.java which will contain Employee information (empId, empName, Dept, Qualf,
experience, and salary).
5. Create Main.java file which will read data from text file and show in tabular form (see output screen
shot).
6. Complete all requirements given in output screen shot.
7. Assignment due date is May 18, 2021.
8. We will not accept assignment through email in any case. Be Careful
For any query about the assignment, contact at cs506@vu.edu.pk
GOOD LUCK

Question:
You are required to develop a simple console application, which reads the employees records from
“employees.txt” file and displays each employee’s information in the tabular form. The program should also
count and display the number of alphabets, spaces, integers, words, characters, and lines from the file in tabular
form given at the end of following output:
Hints:
To manage employee information use Employee class.
To store multiple employees record use ArrayList.

Note: Your code must justify enough for 20 marks.


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

You might also like