Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


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

 

Total Marks: 20

 

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.                         

 

Views: 2418

Replies to This Discussion

Share the Assignment Questions & Discuss Here.... 

Stay touched with this discussion, Solution idea will be uploaded as soon as possible in replies here before the due date.

CS506 Web Design and Development Assignment 01 Spring 2021 Solution

Click on the below link to download the file

CS506_Assignment%2301_Solution-Spring_2021.docx

 

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.                          

CS506 Assignment 1 solution 2021 | CS506 Assignment No 1 solution Spring 202


CS506 Assignment 1 Solution Spring 2021 || Web Design and Development || Assignment Code With File

CS506 ASSIGNMENT 1 SOLUTION 2021

Sturdy / cozy / safe • java may be very strong. Each, vs. Unintended mistakes and vs. Malicious code which includes viruses. Java has slightly worse performance since it does all this checking. (or placed the alternative manner, c may be faster because it does not check whatever.) the jvm “verifier” exams the code when it’s miles loaded to affirm that it has the appropriate.

Structure — that it does no longer use an uninitialized pointer, or blend int and pointer sorts. That is one-time “static” evaluation — checking that the code has an appropriate shape without jogging it. • the jvm also does “dynamic” checking at runtime for positive operations, which include pointer and array get right of entry to, to make sure they’re touching simplest the memory they need to. You may write code that runs into 

As a end result, many commonplace bugs and safety issues (e.G. “buffer overflow”) are not possible in java. The exams additionally make it easier to discover many not unusual bugs clean, due to the fact they’re stuck by means of the runtime checker. • you may commonly in no way write code that fails the verifier, when you consider that your compiler is wise sufficient to most effective generate correct code.

You may write code that runs into the runtime. Tests all of the time as you debug — array out of bounds, null pointer. • java also has a runtime protection manager can take a look at which operations a selected piece of code is allowed to do. As a end result, java can run untrusted code in a “sandbox” where, As an instance, it can draw to the screen but can’t get right of entry to the nearby record gadget.

// Nazim Ali MC200200449
class Employee
{
private String empID;
private String empName;
private String Dept;
private String Qualf;
private String experience;
private String salary;

public Employee(String empId, String empName, String Dept, String Qualf, String experience, String salary)
{
this.empID = empID;
this.empName = empName;
this.Dept = Dept;
this.Qualf = Qualf;
this.experience = experience;
this.salary = salary;
}
public String getId(){
return empID;}
public String getName(){
return empName;}
public String getDept(){
return Dept;}
public String getQualf(){
return Qualf;}
public String getExperience(){
return experience;}
public String getSalary(){
return salary;}
public String record()
{
return empID+","+empName+","+Dept+","+Qualf+","+experience+","+salary;
}
}

// Nazim Ali MC200200449
class Employee
{
private String empID;
private String empName;
private String Dept;
private String Qualf;
private String experience;
private String salary;

public Employee(String empId, String empName, String Dept, String Qualf, String experience, String salary)
{
this.empID = empID;
this.empName = empName;
this.Dept = Dept;
this.Qualf = Qualf;
this.experience = experience;
this.salary = salary;
}
public String getId(){
return empID;}
public String getName(){
return empName;}
public String getDept(){
return Dept;}
public String getQualf(){
return Qualf;}
public String getExperience(){
return experience;}
public String getSalary(){
return salary;}
public String record()
{
return empID+","+empName+","+Dept+","+Qualf+","+experience+","+salary;
}
}

CS506 Web Design and Development Assignment 01 Spring 2021 Solution

Click on the below link to download the file

CS506_Assignment%2301_Solution-Spring_2021.docx

CS506 Assignment No 1 Spring 2021

yaar send kar de solution file ka link is email pr nazimalilive@gmail.com

teri mehrbaani main bnai aye file lekin us main masla aa raha hy us main Id null aa raha hy baki sab theek chal gai hy 

RSS

Looking For Something? Search Below

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

Latest Activity

© 2021   Created by + M.Tariq Malik.   Powered by

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