Breaking News

CS301 Assignment 2 Solution fall 2021

 CS301 Assignment 2 Solution fall 2021

cs301 assignment 2 solution fall 2021
cs301 assignment 2 solution fall 2021

Download Now

 

                                              CS301 – Data Structures

                                                        Assignment No. 1

                                                     Semester: Fall 2021

    Due Date:  21/12/2021                                                                       Total Marks: 20


Instructions

  1. Please read the following instructions carefully before submitting the assignment solution:
  2. It should be clear that your assignment will not get any credit/marks if:
  3. Assignment is submitted after due date.
  4. Submitted assignment does not open or file is corrupt.
  5. Assignment is copied (From internet/students).

Recommended Tools

Dev C++

Assignment Submission Instructions 

You have to submit only .cpp file of your code on the assignments interface from your LMS account. Assignment submitted in any other format will not be accepted and will be scaled with zero marks. No excuse will be accepted on submitting solution file in any other format.For any query related to assignment, please contact cs301@vu.edu.pk. 

Problem Statement:

You are required to develop a C++ program to facilitate the working of a hospital, where a large number of dengue patients are attending Hospital. But the higher age patients of dengue need to be treated first because their immune system is very week.

So you need to develop a C++ program which serve these patients on the basis of their age. When the data will be collected by the information desk they need to enter the age of the patient. Then our system will manage the priority of the patient according to their age.

Following is the list of priorities for various age brackets: 

1. Top priority: Patient’s age 60 years or higher.

2. 2nd: Patient's age greater than 50 and less than or equal to 60 years.

3. 3rd: Patient's age greater than 40 and less than or equal to 50 years.

4. 4th: Patient's age greater than 30 and less than or equal to 40 years.

5. 5th: At last the patient’s age up to 30 years will be served.

Working Mechanism:

You are required to use priority queues for the fulfillment of above operation.

Your program should prompt for different operations.

  • For age entry of a patient.
  • For delete entry of a patient. 
  • To display information of a patients on the basis of age (priority).
  • To exit your program.

Sample Output:

See the attached .gif file. 

cs301 assignment 2 solution fall 2021

Note: You are required to use only classes for this assignment. Use of “Struct” is not allowed.


Lectures Covered: (Lecture # 7- 13) and Due date to submit solution: (Tuesday, December 21, 2021).

Submission details

Following Files Must be submitted in a single file.

C++ code file (file name should be your VUID)  

Best of Luck

#cs301assignment 1 solution 2021 cs301 assignment 2 solution 2021 cs301 assignment 2 solution file 2021 cs301 assignment 2 solution 2021,cs301 assignment 2 fall 2021,cs301 assignment 2 solution 2021 cs301 assignment fall 2021,cs301 assignment solution 2021,cs301 assignment 1 solution 2021,cs301 assignment solution 2020,cs301 assignment 2,cs301 assignment no 2 solution 2021,cs301 assignment solution fall 2021,cs301 assignment 2 solution 2022,cs301 assignment no 2 solution fall 2021,cs301 assignment 2 solution fall 2021,assignment solution fall 2021,cs301 assignment 1 solution fall 2020,vu assignment,cs301 assignment 1 solution,assignment solution,CS301 Assignment 1 Complete Solution,CS301 Assignment 1 solution,CS301 assignment Fall 2021,CS301 assignment solution Fall 2021,CS301 Assignment 1 solution 2021,CS301 assignment solution 2021,CS301 Assignment 1,CS301 Assignment 1 solution Fall 2021,CS301 Assignment no 1 solution 2021,assignment solution Fall 2021,cs,vu,CS301,virtual university,CS301 assignment 1 solution,CS301 assignment 1 solution 2021,vu assignment,assignment solution,cs301 assignment 1 solution 2021, cs301 assignment 2 solution 2021

No comments