0% found this document useful (0 votes)
11 views2 pages

Lab-5 Journal-05-31032023-091050am

The document is a lab journal for a Computer Programming course at Bahria University, Lahore Campus. It outlines objectives and tasks for students to complete, focusing on loop statements in C++ programming, including displaying ASCII characters, printing sequences of numbers, and manipulating character outputs. The lab includes a grading sheet for evaluating the tasks completed by students.

Uploaded by

sehrish.riaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Lab-5 Journal-05-31032023-091050am

The document is a lab journal for a Computer Programming course at Bahria University, Lahore Campus. It outlines objectives and tasks for students to complete, focusing on loop statements in C++ programming, including displaying ASCII characters, printing sequences of numbers, and manipulating character outputs. The lab includes a grading sheet for evaluating the tasks completed by students.

Uploaded by

sehrish.riaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Bahria University, Lahore Campus

Department of Computer Science


Lab Journal 05

Course : Computer Programming - Lab Date: _______________


Course Code: CSL-113 Max Marks: 20
Faculty’s Name:

Name: _____________________ Enroll No: ___________________ Class: _____________

Objective(s):
Upon completion of this lab session, students will be able to:
• Understanding of Loop statements
Tasks
Task 1
Write a program that uses a loop to display the characters for the ASCII codes 0 to 127.
Display 16 characters on each line.

Task 2
By applying for loop, write a C++ program that prints
a) A sequence of numbers in ascending order from 1 to 100 (inclusive).
b) Modify your program in part (a) to make it prints odd numbers within 1 to 100.
c) Write a C++ Program that receives a positive integer (N) and prints a series of
numbers from 1 to N (inclusive) in ascending order.
d) Write a C++ Program that displays a series of alphabets in descending order from ‘Z’
to ‘A’.
e) Modify your program in part (d) so that the program will display consonants only, no
vowels.
f) Write a C++ program that receives start value and end value. Then, your program will
display a series of numbers from the start value to the end value inclusive.
%

Enrollment Number: ____________________________

Lab Grading Sheet:

Max Obtained
Task Comments (if any)
Marks Marks
1. 05

2. 10

3. 05

Total 20 Signature

Note: Attempt all tasks and get them checked by your Lab Instructor.

Page 2 of 2

You might also like