CS301P Assignment 1 Solution 2021

0
251
CS301P Assignment 1 Solution

Assignment No. 01 (Graded)
SEMESTER Fall 2021
CS301P Assignment 1 Solution

 

Total Marks: 20

 

Due Date: 13/12/2021

 

Instructions

Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit (zero marks) if:

Assignment is submitted after due date.

The code does NOT compile.

The assignment file is other than .CPP format.

The submitted assignment file does not open or corrupted.

The assignment is copied (from other student or ditto copy from handouts or internet).

 

Uploading instructions

For clarity and simplicity, you are required to Upload/Submit only one .CPP file.

Ø  Don’t wait for grace day. Grace Day is given only if there is problem with LMS on due date. Submit your solution within due date.

Ø  Note that no assignment will be accepted through email if there is any problem on grace day.

 

Note: Use only Dev C++ IDE.

 

Objective

The objective of this assignment is to make you familiar with Linked List data structures and programming techniques related to them.

 

For any query about the assignment, contact at cs301p@vu.edu.pk

 

GOOD LUCK

 

  Marks: 20 

CS301P Assignment 1 Solution :

A company wants to hire new employees in its recruitment drive. You are hired as a programmer to develop a C++ program using Linked List data structure for the recruitment process. Your program should meet the following requirements.

 

Requirements:

  • Program should be built with the help of Linked list. (If array is used then marks will be deducted).
  • Output console menu must be appeared to do following operations:

The program will store the data of all candidates in Linked List.

The Candidate id, name, interview marks will be entered as input on the console.

If interview marks are greater than or equal to 50 then set the candidate status as pass else declare the candidate status as fail.

Save each candidate’s record into Linked List.

The program should be able to print total number of candidates.

Program should display the data of pass and fail candidates separately.

The code should be able to update the data of a candidate. Candidate ID will be passed as an input and data against that ID should be updated.

 

Solution Guidelines:

 

1)      Before developing this assignment understand and practice the following topics:

Nodes

List

Linked List

Linked List Methods

2)      Use Linked List data structure to save information of candidates. Each candidate will represent a node which will contain candidate id, name, interview marks and status(pass/fail).

3)      Your solution should use these classes

a.       Candidate (Node) Class: To save information of each candidate

b.      Linked_List Class: To save different candidates

 

Sample Output

See the attached Gif file (output.gif) to see the sample output.

Labs Covered:  This assignment covers Lab # 1- 3

Deadline:           Your assignment must be uploaded / submitted on / before, Monday 13th December 2021

 

CS301P Assignment 1 Solution :