Programming

C PROGRAMMING:

Learning outcomes and assignments of Introduction to programming of Turbo C

  • Program structure, header files, main function, print function and escape sequences

    • Write a program to print your name in the center of screen
  • Data types, format specifiers, input function and ASCII characters

    • Write a program to take input of student’s name(string), grade(character), percentage(float) and age(integer)and print the output in a box
  • Mathematical operations

    • Write a program to add any two numbers taken as input
    • Write a program to convert temperature from Fahrenheit to Celcius
    • Write a program to calculate roots of quadratic formula
  • Unconditional looping statement

    • Write a program to print natural numbers taking starting point and ending point as input
    • Write a program to generate a multiplication table of any number
    • Write a program to print a right triangle of ‘*’
  • Conditional looping statement and if else statements

    • Write a program to print a right triangle of ‘*’ rotated 180 o
    • Write a program to print a right triangle of ‘*’ rotated 90 o
    • Write a program to print an equilateral triangle of ‘*’
    • Write a C program to enter any number and print it in words
    • Write a C program to find HCF (GCD) of two numbers
    • Write a C program to find LCM of two numbers
  • Concept of functions

    • Write a program to print a diamond of ‘*’ using a function to print right triangle
    • Write a function that asks the user to type the value of N and computes N!
    • Write a function to take any number as argument and count the number of its digits
    • Write a function to enter any number and calculate sum of its digits
    • Write a function to reverse a number taken as input example 123 will become 321
    • Write a function to check if a number is prime number or not
    • Write a function that asks the user to type an integer N and that writes the number of prime numbers lesser or equal to N
  • Concept of arrays

    • Write a program for finding the amount of a specific character inside a string
    • Write a Program to count Zero, Positive, Negative no. in a given Data Series
    • Write a program to count the numbers which are divisible by 3 in a given Data Series

Fast Institute

Teachers:

 Hafiz Muhammad Ahsan

Hafiz Muhammad Ahsan