Professional Documents
Culture Documents
CSCL 1103 Lab: Fundamentals of Programming (BSSE-1A) : Due Date
CSCL 1103 Lab: Fundamentals of Programming (BSSE-1A) : Due Date
Learning Objectives:
1. To make you familiar with the Windows programming environment and the "C++" compiler. For
this purpose you can use DevCPP/Visual Studio/CodeBlocks/Turbo C (TC). You will write,
compile and run programme in "C++"
Your lab report is expected to contain the following for each exercise:
* ********** * * * * *********
*** * * ** ** * * *********
***** * * *** *** * *********
*** * * **** **** * * *********
* ********** ***** ***** * * *********
Exercise 2: Assume you have 3 integer variables in your program with names a, b and c. Write C++ code
for following tasks.
1. Declare and initialize each variable in a separate statement.
2. Declare each variable in separate statement, then initialize each variable separate
statement.
3. Declare all variables in one statement. Then, initialize each variable in separate
statement.
4. Declare and initialize all variables in a single statement.
5. Only declare variables a, b and declare/initialize variable c in a single statement.
Page 1 of 1