Department of Electrical Engineering
Riphah College of Science and Technology
Riphah International University, Lahore
Program: B.Sc. Electrical engineering
Subject: CS-101 Computer Fundamentals Lab
Semester: I
Date: …………
Lab 6: While and do While loops in programming
OBJECTIVES:
i. Learn about while and do-while loops in C++
Name : ……………………………………………………………
SAP ID: ……………………………………………………………
No.
Lab Evaluation Scheme
Obtained
Marks
1
Understanding and Ability to Conduct Experiment. (0-5)
2
Implementation and Results (0-5)
Total
No.
Lab Report Scheme
Obtained
Marks
1
Report Content(0-5)
2
Data Presentation and conclusion(0-5)
Total
Remarks (if any): ………………………………
Signature of faculty: …………………………………
Lab 6
WHILE/DO-WHILE LOOPS
PURPOSE
1. To understand the iterative statements and their use in C
2. To understand and practice
While loop
Do-while loop
PROCEDURE
1. In the lab students should complete both the “Examples” and “Lab Tasks”.
PRE-LAB READING ASSIGNMENTS