You are on page 1of 6

COMPUTER

PROGRAMMING LAB
CSC 113

BSE 1

FALL 2020

LAB JOURNAL#02

Submitted by:

Muhammad Ezaan Ali

Submitted To: Engr.

Waleed
Department of Software Engineering
Bahria University Islamabad Campus

Objectives:

Basic Structure of C++ Program


Data Types
Tokens
Keywords
Operators
Manipulators
Conditional Statement

Tools used

VARIABLES

Variables are used to store data values.

Variables are of five types

1. Int: for storing integers without decimals.


2. Double: For storing values having decimal point.
3. Char: For storing a single character i.e. ‘a’.
4. String: For storing a group of words.
5. Bool: For storing a True/False value.

Task solving
Task # 1
Calculation of area of circle

Task #2
Print the assigned values on computer screen.
TASK#3

Program to perform arithmetic operations.

TASK#4
Program to print message using cout object.
TASK#5
Swapping the values of two integers.

CONCLUSION
Understood, Basic understanding of C++ program structure. Logic behind swapping numbers.
Performing basic arithmetic operations and printing statement using cout.

You might also like