Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Government Polytechnic, Jamnagar

Department of Computer Engineering

Year: 2022-23 (ODD)

Experiment File

Basic Computer Programming (4310702)

Enrollment No : ___________________________

Student Name : ___________________________


Government Polytechnic, Jamnagar
Computer Department

Certificate

This is to certify that

Mr/Miss ____________________________________
of 1st semester diploma in computer engineering whose
Enrollment No. is _____________
Has satisfactorily completed his/her term work of the course
Basic Computer Programming(4310702)
For the term ending in ______________
date___________

Signature of Faculty
Basic Computer Programming (4310702)

Course Outcomes
CO1 - Design algorithm and flowchart for the given Problem.
CO2 - Develop C programs using control structures.
CO3 - Develop C programs using arrays and pointers.
CO4 - Implement user defined functions.
CO5 - Use structure and union in C programs.
CO6 - Implement file and I/O operations in C.

CO-PO Mapping Table

POs/ PO1 PO2 PO3 PO4 PO5 PO6 PO7


COs
CO1 2 2 2 - 2 2 2
CO2 2 3 3 2 2 2 3
CO3 2 3 3 2 2 2 3
CO4 2 3 3 2 2 2 3
CO5 2 3 3 2 2 2 3
CO6 2 3 3 2 2 2 3

3 for High
2 for medium
1 for low
- for no correlation
GOVERNMENT POLYTECHNIC JAMNAGAR

Department of Computer Engineering


Experiment Index

Subject : Basic Computer Programming (4310702)


Semester : 1st

SR CO
EXPERIMENT TITLE DATE SIGNATURE
NO Mapping

Draw flowchart and Design algorithm for the


1 CO1
given problems.

Design and Test C programs using variables,


2 different operators, formatted and unformatted CO2
functions.

Design and Test C program using conditional,


3 CO2
control statements.

Design and Test C program using Array,


4 CO3
String, Pointer, and In-built String Functions.

Design and Test C programs using user


5 defined functions, recursion, and in-built math CO4
functions.
CO5
Design and test C programs using Enum,
6 &
typedef, structure, union and basic of files.
CO6
GOVERNMENT POLYTECHNIC JAMNAGAR
Department of Computer Engineering
EXPERIMENT LIST
Subject : Basic Computer Programming (4310702) Semester : 1st
SR CO
EXPERIMENT TITLE PO Mapping
NO Mapping
Experiment-1
Practice using Visual Programming Language like scratch.
Please follow the instructions given below:
1. Make a simple program in scratch PO1, PO2, PO3,
1 CO1
2. Add description about your program PO5, PO6, PO7
3. Add screenshots of block programming code
4. Add screenshots of your program's output
PO1, PO2, PO3,
2 Write an algorithm and draw flowchart to find the sum of two numbers. CO1
PO5, PO6, PO7
PO1, PO2, PO3,
3 Write an algorithm and draw flowchart to convert centimeter to meter. CO1
PO5, PO6, PO7
PO1, PO2, PO3,
4 Write an algorithm and draw flowchart to swap(interchange) two numbers. CO1
PO5, PO6, PO7
PO1, PO2, PO3,
5 Write an algorithm and draw flowchart to find area and perimeter of square. CO1
PO5, PO6, PO7
PO1, PO2, PO3,
6 Write an algorithm and draw flowchart to find average for 3 numbers. CO1
PO5, PO6, PO7
PO1, PO2, PO3,
7 Write an algorithm and draw flowchart to calculate Simple Interest. CO1
PO5, PO6, PO7
PO1, PO2, PO3,
8 Write an algorithm and draw flowchart to check whether the given number is prime or not. CO1
PO5, PO6, PO7
Write an algorithm and draw flowchart to find the largest among three numbers entered by PO1, PO2, PO3,
9 CO1
the user. PO5, PO6, PO7
PO1, PO2, PO3,
10 Write an algorithm and draw flowchart to find the sum of odd numbers from 1 to N. CO1
PO5, PO6, PO7
Experiment-2
PO1, PO2, PO3,
1 Design and test sample C programs to display "Hello World" on screen. CO2
PO4, PO5, PO6, PO7
Design and test a C program to swap 2 numbers using a third variable and without using third PO1, PO2, PO3,
2 CO2
variable. PO4, PO5, PO6, PO7
Design and test a C program to compute volume and surface area of a sphere.(Hint: V = (4 ⁄ 3) PO1, PO2, PO3,
3 CO2
π r3 , A = 4 π r2) PO4, PO5, PO6, PO7
Design and test a C program to convert temperature in Fahrenheit to Celsius and vice PO1, PO2, PO3,
4 CO2
versa.(Hint: C = 5/9 x (F - 32)) PO4, PO5, PO6, PO7
PO1, PO2, PO3,
5 Write a program to convert days into months and days. CO2
PO4, PO5, PO6, PO7
Design and test C programs to using enlisted operators: (1) Assignment (2) Arithmetic (3) PO1, PO2, PO3,
6 CO2
Relational (4) Logical PO4, PO5, PO6, PO7
Design and test C programs using the enlisted operators: (1) Bitwise (2) Increment and PO1, PO2, PO3,
7 CO2
Decrement (3) Conditional (4) Comma (5) size of PO4, PO5, PO6, PO7
Design and test C programs to using (1) operator precedence and their associativity (2) PO1, PO2, PO3,
8 CO2
implicit and explicit type conversion. PO4, PO5, PO6, PO7
PO1, PO2, PO3,
9 Design and test C program to show formatted and unformatted input and output. CO2
PO4, PO5, PO6, PO7
Design and test C program to get one character and display it using getchar( ) and putchar( ) PO1, PO2, PO3,
10 CO2
function. PO4, PO5, PO6, PO7
Experiment-3
Design and test C program to read the age of a candidate and detrermine whether it is eligible PO1, PO2, PO3,
1 CO2
for casting his/her own vote. PO4, PO5, PO6, PO7
PO1, PO2, PO3,
2 Design and test C program to check entered character is vowel or consonant. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
3 Design and test C program to find the largest of the three nos. using nested if statement. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
4 Design and test C program to demonstrate use of else if ladder. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
5 Design and test C program to make a simple calculator using switch case statement. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
6 Design and test C program to demonstrate use of goto statement. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
7 Design and test C program to display multiplication table of a given number. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
8 Design and test C program to print 1/1+1/2+1/3+1/4+………+1/N series. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
9 Design and test C program to evaluate the series 1-2+3-4+…..±N. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
10 Design and test C program to find sum of first N odd numbers. Ex. 1+3+5+7+………..+N. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
11 Design and test a C program using break and continue statements. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
12 Design and test C program to find the factorial of the entered number. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
13 Design and test C program to find the sum of digits for the given number using while loop. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
14 Design and test C program to check whether the given number is prime or not. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
15 Design and test C program to print Fibonacci series upto N terms. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
16 Design and test C program to check whether the given number is palindrome or not. CO2
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
17 Design and test C program to print following pattern using for loop CO2
PO4, PO5, PO6, PO7
*
** PO1, PO2, PO3,
i CO2
*** PO4, PO5, PO6, PO7
****
12345
2345
PO1, PO2, PO3,
ii 345 CO2
PO4, PO5, PO6, PO7
45
5
12345
1234
PO1, PO2, PO3,
iii 123 CO2
PO4, PO5, PO6, PO7
12
1
AAAAA
BBBB
PO1, PO2, PO3,
iv CCC CO2
PO4, PO5, PO6, PO7
DD
E
1
01
PO1, PO2, PO3,
v 101 CO2
PO4, PO5, PO6, PO7
0101
10101
Experiment-4
Design and test C program that read two matrices of 3x3 and add them, then display the PO1, PO2, PO3,
1 CO3
resultant matrix. PO4, PO5, PO6, PO7
PO1, PO2, PO3,
2 Design and test C program to enter N numbers in array and arrange them in Ascending order. CO3
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
3 Design and test C program to calculate the sum of all the elements of an array of 6 integers. CO3
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
4 Design and test C program to find out maximum number from array of five elements. CO3
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
5 Design and test C program to determine whether the given string is palindrome or not. CO3
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
6 Design and test C program to count total words in text. CO3
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
7 Design and test C program using the concept of pointer to pointer. CO3
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
8 Design and test C program to test various inbuilt string functions. CO3
PO4, PO5, PO6, PO7
Experiment-5
PO1, PO2, PO3,
1 Design and test C program to interchange the value of two variable using user define function. CO4
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
2 Design and test C program to find maximum out of three numbers using user define functon. CO4
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
3 Design and test C program to add first N numbers using user define function. CO4
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
4 Design and test C program to find factorial of a number using recursion. CO4
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
5 Design and test a C program to demonstrate various inbuilt math functions. CO4
PO4, PO5, PO6, PO7
PO1, PO2, PO3,
6 Design and test a C program to demonstrate storage classes. CO4
PO4, PO5, PO6, PO7
Experiment-6
PO1, PO2, PO3,
1 Design and test a C program to demonstrate usage of enum and typedef. CO5
PO4, PO5, PO6, PO7
Design and test C program to define a structure type personal, that would contain person
PO1, PO2, PO3,
2 name, date of joining and salary. Using this structure, write a program to read this information CO5
PO4, PO5, PO6, PO7
for one person from the key board and print the same on the screen.
Design and test C program to define a union called Cricket that will describe the following
PO1, PO2, PO3,
3 information: a. Player name b. Team name c. Batting average Using this Union, Read this CO5
PO4, PO5, PO6, PO7
information for one player from the key board and print the same on the screen.
PO1, PO2, PO3,
4 Design and test C program to illustrate reading and writing file contents. CO6
PO4, PO5, PO6, PO7

You might also like