Professional Documents
Culture Documents
by Sarfraz Raza
Pre-requisite of :
ITC-2017
PF/OOP: https://sites.google.com/view/pf-ucp-2018/
DSA: https://sites.google.com/view/dsa-ucp2017/home
DM: https://sites.google.com/view/ds-ucp-2017/home
Algo: https://sites.google.com/view/algo-ucp-2017/home
What is Computation?
What is Algorithm?
Guessing Game
Introduction to Logarithm
Logical reasoning (Given 5 white beans And 10 Black Beans And a drawing criteria which
will be the last ball in the pot.
Geometric Series.
Projects
Scratch tutorials
Using cout
Introduction to variable
Introduction to Iteration
If Statement
Block statements
If else Statement
The Problem of repeating the same structure again and again (The Need of function)
Character Data-Type
ASCII values
2. Using getch function and printing '****' in password style for the two players
Calculator
Finding the students who has the highest aggregate marks in total
Switch Statement
Given 4 points are these the points of a (Rectangle, Square, Parallelogram, Rhombus or
Just a Quadrilateral)
Finding the Students who got the highest %age in the semester result.
Switch Statement
Given 4 points are these the points of a Rectangle and a point P find if P lies inside the
rectangle.
Factorial
Distance
Power
Sqrt
MinOfTheThreeNumbers/MaxOfTheThreeNumbers/MiddleOfTheThreeNumbers
IsCapital/IsSmall
CapitalSmallOrNon
STOP-watch
A small animations based on a small delay and printing a Timer in Milli-Second, Seconds,
Mins and hours in the following format
HH:MM:SS:MMM
Age Calculator
Given two dates validate them as Date of Birth and Data of Death or Current Data and
calculate the age in years, months and days.
Reading - Chapter 4
Lecture
ITC-201710A: Age Calculator and Functions with Loops
Age Calculator
Given two dates validate them as Date of Birth and Data of Death or Current Data and
calculate the age in years, months and days. In case of Invalid entry ask again/Just like
menu based.
Factorial
NPR
NCR
Chapter 3: Selection
STATEMENT BLOCKS
COMPOUND CONDITIONS
SHORT-CIRCUITING
BOOLEAN EXPRESSIONS
Finding LCM
IntegerSquare
IsPrimeNumber
Various Implementation
Reverse of a number
Implementation of PrintACharacterKTimes
Isosceles triangle
Printing Pajamas
How Divide and conquer and reusability makes life very easy
Circular Spiral
Stone Throwing
Its applications Variable Aliasing and multiple values returning through them
Introduction to Arrays (The need of arrays through Sorting) and initializing the
arrays
Pictorial representation of arrays and how indexing works and The early computer
virus
Discussion on the implementation of How the Game will be over Draw and Win
Cases?
Draw
WINNING CONDITIONS
DiagonalWin
Arrays
Declaring Arrays
Sorting Arrays
Initialization
Moving Snake
Adding directions
Adding food
Capturing Food
Generating Food
Box Printing
Printing in Box
MAIN FLOW
Dice Rolling I
Snakes bites
Ladders climb
Game Finishing
Memory Requirement
BASIC Validating (whether the selected piece is the piece of the player) and
where the player placed is a legal destination (regardless of checking the
move of the piece) i.e. either it is a space character or opponent piece.
Updating memory
Turn changing
IsHorizontalMove
IsVerticalMove
IsDiagonalMove
IsHorizontalPathClear
IsVerticalPathClear
IsDiagonalPathClear
Designing the pieces' legal Moves under the abstraction of the Six utility
functions
IsRookLegalMove
IsBishopLegalMove
IsQueenLegalMove
IsKingLegalMove
IsHorseMove
Undoing a move
Check
Castling
Checkmate
Stalemate
Illegal Moves: Like any move which results in a check or a move within check
which isn’t able to remove check is an illegal move