Road Map For C Programming
Road Map For C Programming
Note: Initially to check the level and knowledge of students if any previous session handled, MCQ would
be used for better understanding about the candidates.
Day 2: Control statements
Problems to solve in session:
Conditional statements:
1. Two numbers are equal / not
2. Print the greatest of 2/3/4 numbers
3. Number is positive / negative. Or zero
4. To check given year is leap year or not (%100, %4, %400 )
5. Arrange 4 numbers in ascending order (Introduce and use Macro concept here)
6. Check whether 3 sides/ angle is triangle and check its types as isosceles, equilateral or scalene /
right angles, obtuse or acute. (explain prioritising conditions)
7. To print the day from the number and to print the month name from number
8. To check whether the given char is vowel (use switch without break)
Looping statements:
Series:
1. Print 1 to N and A to Z in reverse order and its lower case
2. AaBb…Zz, aAbB….zZ, AbCd…., aBcD…
3. Print even, odd
4. Average, sum, of N number
5. Fibonacci series
6. Connell series
7. Catalan series
Operation problems:
8. Print factors of a number (basic code, /2 and sqrt(num)) basic to optimized
9. Explain the concept Perfect / deficient / amicable/ betrothed/ quasi amicable number or not
and solve perfect, prime and betrothed.
10. To print prime numbers in a given range
11. HCF, GCD and LCM.
Note: Make sure to explain while, do while and for loop while solving problems and emphasis them that
for is just beautified version of while, no other difference among for and while. The syntax of for is
for(initial settings; condition; alterations). Also, make sure to emphasis that for loop can take function
calling in alterations part. Single line for loop is possible.
Day 3: Patterns
Problems to solve
**** **** * * ****
**** * * * ** ***
**** * * * *** **
**** **** * **** * (water)
1 1 4321 A A 4321
12 22 321 AB BC 123
123 333 21 ABC DEF 21
1234 4444 1 ABCD GHIJ 1 (combng)
1 1 1234 1 1234567 *
01 10 123 24 12345 **
101 101 12 135 123 ***
0101 1010 (concept) 1 2468 (combng) 1 **** ( mirror)
01 02 03 04 05 4444444 01 02 03 04 05 1 To do complex
4333334 2*2
11 12 13 14 15 16 17 18 19 06 patterns with
4322234 3*3*3
21 22 23 24 25 4321234 15 24 25 20 07 numbers and char
4*4*4*4
16 17 18 19 20 4322234 14 23 22 21 08 3*3*3 too. Also add emoji
06 07 08 09 10 4333334 13 12 11 10 09 2*2
4444444 like ☺☻♥♦♣♠
1
Day 6: Strings
Problems to solve in class
1. To read and print the string with spaces / 2 sentence using scanf(getchar(), %[^\n*c])
2. To check a given char is vowel or not
3. In built function – strlen, strcpy, strcat, strcmp, strrev, strstr, strupr,strlwr, isupper, islower,
isalpha, isalnum
4. Pointers and its types, double pointer using adam number explain functions
5. Write user defined functions for all inbuilt function in section 3.
6. Reverse a string
7. To check whether a string is palindrome
8. To rotate a string n times
9. To check whether a string is rotation or not
10. Count number of words
11. To reverse a string word by word
12. Swap given 2 words in a string
13. String compression and elongation
14. String sorting