Fall 2024_CS201P_2
Fall 2024_CS201P_2
2 Total Marks: 20
Semester: Fall 2024 Due Date: 31st Dec, 2024
CS201P – Introduction to Programming(Practical)
Instructions
Please read the following instructions carefully before submitting the assignment:
It should be clear that your assignment will not get any credit if:
Objectives:
To enable students to understand and practice the concepts of:
Functions
Function calling
Classes and objects
Assignment
Problem Statement:
Imagine a recruitment process for candidates applying to join the Air force. Suppose there are three candidates
named “Babar”, “Rizwan” and “Shan” whose eligibility is checked for recruitment on the basis of their key
attributes Height, weight and age.
ii. Candidates need to have a body weight in the range of 52 – 60 kg. Any candidate who weighs less than
52 kg or more than 60 kg is deemed ineligible.
iii. The minimum height requirement for selection is 5.6 feet. Candidates who are shorter than 5.6 feet do
not meet the criteria for eligibility.
Write a class in C++ that reads the attributes for each of the candidate and check their eligibility for recruitment on
the basis of above criteria.
Display the result of their attributes, their eligibility status and reason if non-eligible.
Note: Remember that if you have not used your name and student id in the program your marks will be deducted.
Syllabus:
The syllabus for this assignment includes all topics covered from Lab 3 to Lab 10.
Best of luck!