Vips Lab File Format
Vips Lab File Format
B.TECH PROGRAMME:
MISSION OF INSTITUTE
To groom the future engineers by providing value-based education and awakening student’s
curiosity, nurturing creativity and building capabilities to enable them to make significant
contributions to the world.
INDEX GGSIPU
6
INDEX (BEYOND CURRICULUM)
7
8
10
11
12
INDEX
(PRACTICE)
5 Factorial N 29/08/
25
7
8
10
11
12
GGSIPU EXPERIMENT
BEYOND CURRICULUM
EXPERIMENT-
Calculate simple interest
PROBLEM STATEMENT:
Write a C program to find simple interest, given principal amount, rate of interest per year and
tenure (in years). Draw flowchart and write an algorithm for the same.
ALGORITHM-.
FLOW CHART-
C PROGRAMME-
Output -
Learning outcomes-
● About the library stdio.h
● How to create main program
● How to declare variables
● How to take values from user
● How to do mathematical operations
EXPERIMENT-
Swap two variables
PROBLEM STATEMENT:
Write a C program to swap two variables with and without using the 3rd variable.
C PROGRAMME-
Output -
Learning outcomes-
● Different ways to do same thing in coding
PRACTICE
EXPERIMENT-
Average of numbers
PROBLEM STATEMENT:
Write a C program to find average of 3 numbers
C PROGRAMME-
Output -
Learning outcomes-
● About the library stdio.h
● How to create main program
● How to declare variables
● How to take values from user
● How to do mathematical operations
● How to display
EXPERIMENT-
Area and perimeter of circle
PROBLEM STATEMENT:
Write a C program to calculate and print the area and perimeter of a circle, taking its radius as
input.
C PROGRAMME-
Output -
Learning outcomes-
● About different datatypes specifically float
EXPERIMENT-
Character to ASCII value
PROBLEM STATEMENT:
Write a C program to print ASCII value of a character taken as input
C PROGRAMME-
Output -
Learning outcomes-
● About the datatype char
● ASCII values of different characters
EXPERIMENT-
ASCII value to Character
PROBLEM STATEMENT
Write a C program to print character when ASCII value is taken as input and also checks that
ASCII input is not greater than 127 (and if so, gives an error and terminates the program)
C PROGRAMME-
Output -
EXPERIMENT-
Factorial N
PROBLEM STATEMENT-
Write an algorithm and draw a flowchart for computing factorial N (N!) Where N! = 1 * 2 * 3 *...*
N.
ALGORITHM-
FLOW CHART-
C PROGRAMME-
Output -
Learning outcomes-
● How to use while loop
● To use assignment operators
EXPERIMENT-
Operators: bitwise and sizeof
PROGRAM STATEMENT-
Use two unsigned int (or unsigned char) variables (say c & d), initialize them to some value of
your choice. Do the following bitwise operations on those and print results as unsigned value on
the screen: c | d c & d c ^ d
~c
Verify the results printed with results of doing same bit wise operations on your own for your
input values (of c and d). Additionally, print the sizeof variable c.
C PROGRAMME-
Output -