12258-LAB Manual - ccffffff PDF

Title 12258-LAB Manual - ccffffff
Author Hamza Majeed
Course Digital Logic Desgin
Institution National University of Modern Languages
Pages 44
File Size 1.6 MB
File Type PDF
Total Downloads 86
Total Views 125

Summary

ccffffff...


Description

National University of Modern Languages Department of Engineering

LAB MANUAL

MUHAMMAD ISRAR 12258-SE3B

INSTRUCTOR | Huma Nadeem

LAB Manual

12258

SE3B

Table of Contents LAB NUMBER: 1 ..................................................................................................................................................... 3 TASK: 01 ...................................................................................................................................................................... 3 CODE: .......................................................................................................................................................................... 3 OUTPUT: ...................................................................................................................................................................... 4 LAB NUMBER: 2 & 3 ............................................................................................................................................... 5 TASK: 01 ...................................................................................................................................................................... 5 CODE: .......................................................................................................................................................................... 5 OUTPUT: .................................................................................................................................................................... 10 LAB NUMBER: 4 & 5 ............................................................................................................................................. 12 TASK: 1 ...................................................................................................................................................................... 12 CODE: ........................................................................................................................................................................ 12 OUTPUT: .................................................................................................................................................................... 20 TASK: 2 ...................................................................................................................................................................... 20 CODE: ........................................................................................................................................................................ 20 OUTPUT: .................................................................................................................................................................... 21 LAB NUMBER: 6 ................................................................................................................................................... 22 TASK: 1 ...................................................................................................................................................................... 22 CODE: ........................................................................................................................................................................ 22 OUTPUT: .................................................................................................................................................................... 24 LAB NUMBER: 7 ................................................................................................................................................... 25 TASK: 1 ...................................................................................................................................................................... 25 CODE: ........................................................................................................................................................................ 25 OUTPUT: .................................................................................................................................................................... 27 TASK: 2 ...................................................................................................................................................................... 27 CODE: ........................................................................................................................................................................ 27 OUTPUT: .................................................................................................................................................................... 29 TASK: 3 ...................................................................................................................................................................... 29 CODE: ........................................................................................................................................................................ 29 OUTPUT: .................................................................................................................................................................... 31 LAB NUMBER: 8 ................................................................................................................................................... 32 TASK: 1 ...................................................................................................................................................................... 32 CODE: ........................................................................................................................................................................ 32 OUTPUT: .................................................................................................................................................................... 35 TASK: 2 ...................................................................................................................................................................... 35 CODE: ........................................................................................................................................................................ 35 OUTPUT: .................................................................................................................................................................... 36 LAB NUMBER: 9 ................................................................................................................................................... 37 TASK: 1 ...................................................................................................................................................................... 37

LAB Manual

12258

SE3B

CODE: ........................................................................................................................................................................ 37 OUTPUT: .................................................................................................................................................................... 39 LAB NUMBER: 10 ................................................................................................................................................. 40 TASK: 1 ...................................................................................................................................................................... 40 CODE: ........................................................................................................................................................................ 40 OUTPUT: .................................................................................................................................................................... 41 TASK: 2 ...................................................................................................................................................................... 41 CODE: ........................................................................................................................................................................ 42 OUTPUT: .................................................................................................................................................................... 43

LAB Manual

12258

SE3B

Lab Number: 1 Task: 01 Create a struct Students (similar to the one provided in this lab manual), allocate values to each type of the struct members and display their memory addresses using *ptr.

Code: #include using namespace std; struct Student { string rollNo,firstName,lastName; double gPA; }; int main() { Student s1, *ptr; ptr=&s1; couts1.rollNo; couts1.firstName; couts1.lastName; couts1.gPA; cout...


Similar Free PDFs