Professional Documents
Culture Documents
Lab # 01 OOP
Names
FA21-BEE-128
Registration
Numbers
Class 3A (BEE)
Lab Assessment
Post Lab Total
Pre-Lab In-Lab
Data Presentation Data Analysis Writing Style
Lab 01 – Review of Basic Programming
Concepts
5.1:- In this, first I have created a structure for a book which
stores book Id, price and pages of a book. This is a user defined
program so the user will give details so to display the data of
most expensive book I have used if/else command.
Link: https://onlinegdb.com/PdtCh7pfb
5.2:- In this I have first declared integers and the ask user to
enter their values after this using pointer I have managed to
add 10 to value and display it.
Link: https://onlinegdb.com/bLqwVVzbx
Link: https://onlinegdb.com/iSamItG5f
Link: https://onlinegdb.com/d7cFldfMP
6.1:- In this I have created an employee structure that
stores some of its data like id and date of joining then I have
asked user to enter current date then by using this if
statement if(abs(E[i].yyyy-yyyy)>=3) I have managed to
display the employees which are working for more then 3
years.
Link: https://onlinegdb.com/G9l69DIzM
Link: https://onlinegdb.com/s_1IFR-YE
Link: https://onlinegdb.com/jDhd4dcMO