You are on page 1of 2

LOVELY PROFESSIONAL UNIVERSITY

Academic Task No. 1

School of Computer Applications Faculty of Technology & Sciences

Name of the faculty member Dr. Yasir Iqbal Mir

Course Code: CAP 281


Course Title: OBJECT ORIENTED PROGRAMMING-LABORATORY

Max. Marks: 30 Is Rubric Applicable: ____

Date of Allotment: 24-Feb-2022 Date of Submission: 6-Mar-2022


Important Guidelines:

1. All questions in this Academic Task are compulsory.


2. It is mandatory to attempt all questions of the assignment in your own handwriting on A4 size
sheets/pages with a blue colour ink pen. Any other mode of attempt (typed or printed codes or table)
except hand written/drawn will not be accepted/considered as valid submission(s) under any
circumstances.
3. Every attempted sheet/page should carry clear details of student such as Name, Registration number,
Roll number, Question number and Page number. The page numbers should be written clearly on the
bottom of every attempted sheet in a prescribed format as: for page 1; Page 1 of 4, for page 2; Page 2 of
4, for page 3; Page 3 of 4 and for page 4; Page 4 of 4, in case your assignment/document is of 4 pages.
4. After attempting the answer(s), student needs to take photograph of each of these answer sheets/pages
and needs to convert the jpeg format images into a sequential single pdf format document (can be done
with many free online available converters).

5. This PDF file should be uploaded onto the UMS interface on or before the last date of the submission.
6. Refrain from indulging into plagiarism as copy cases will be marked zero.
S. Roll Objectives of Evaluation Expected
No. No. Academic Topic/Question Details Parameters Outcomes
Activity
Regd To gain basic 1.Write a program in C++ that will accept 15 marks per How to
Num knowledge your roll no, university name, course code question implement and
about object develop
1 ber and print the values entered
oriented applications
ends 2. Write a program in C++ to compare using object
programming
with two values and print greatest value. oriented
1,6 Values should be taken from user programming

Regd To gain basic 1.Write a program to display the value of 15 marks per How to
Num knowledge variable using pointer variable, also question implement and
develop
2 ber about object display the address of variable
applications
ends oriented 2. Write a program that will decide using object
with programming whether a user is eligible for voting or not oriented
2,7 programming

Regd To gain basic 1. Write a program to create a structure 15 marks per How to
Num knowledge with primitive data type members. Accept question implement and
about object develop
3 ber the value from user and display their
oriented applications
ends value using object
with programming 2. write a program to print the numbers oriented
3,8 from 1 to 50 and also print their sum programming
using while loop
4 Regd To gain basic 1. write a program to convert char data 15 marks per How to
Num knowledge type to int data type by both assignment question implement and
develop
ber about object and cast operator
applications
ends oriented 2. write a program to print the numbers using object
with programming from 1 to 50 and also print their sum oriented
4,9 using do-while loop programming

5 Regd To gain basic 1. write a program to print the factorial of 15 marks per How to
Num knowledge a number, number should be entered by question implement and
develop
ber about object user applications
ends oriented 2 write a program to compare three using object
with programming numbers and print the greatest among oriented
5,0 them programming

You might also like