Index

You might also like

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

B & B Institute of Technology, Vallabh Vidyanagar

Computer Department (Self Finance)


Subject: Basic Computer Programming

INDEX
Sr. Practical Page Faculty Sign Marks
Practical Title
No. Date No. & Date / 10
Display “Hello World” on output
1
Screen using printf() function.
Display your biodata on output screen
2
using printf() function.
Print character, integer and float values on
3
output screen using printf() function.
Scan Value from User using scanf()
function & print character, integer and
4
float values on output screen using printf()
function.
Make a Simple Calculator (+ - * / %) using
5
printf() and scanf() functions.
6 Find Area of Circle.
7 Find Volume of Sphere.
8 Find Area of Square.
9 Find Area of Rectangle.
Calculate temperature from F to C.
10
[Hint. C= (5.0 * (F - 32.0))/9.0
Calculate Temperature from C to F.
11
[Hint F=((9.0*C)/5.0) + 32.0
Calculate Simple Interest.
12
[Hint I= (p*n*r)/100].
Swapping (Exchange) 2 numbers using
13
third (temporary) variable.
Swapping (Exchange) 2 numbers without
14
using third (temporary) variable.
15 Sum of 3-digit number.
16 Reverse given 3-digit number.
Show various calculations using Short
17
hand operators ( +=, -=, *=, /=, %= )
Show various calculations using
18 Relational operators
( >, <, >=, <=, ==, != )
Show various calculations using Logical
19 operators
( &&, || , ! )
B & B Institute of Technology, Vallabh Vidyanagar
Computer Department (Self Finance)
Subject: Basic Computer Programming

INDEX
Sr. Practical Page Faculty Sign Marks
Practical Title
No. Date No. & Date / 10
Show various calculations using
Bitwise operators
20 AND, OR, XOR, COMPLEMENT,
LEFT SHIFT, RIGHT SHIFT
( &, | , ^, ~, <<, >> )
Show various calculations using
21 Increment Operators
(Pre Increment & Post Increment)
Show various calculations using
Decrement Operators
22
(Pre Decrement & Post
Decrement)
Demonstrate example of sizeof
23
Operator
Demonstrate example of Comma
24
Operator
Find whether user is allowed to vote
25
or not using Ternary Operator (?:)
Find Odd or Even using Ternary
26
Operator (?:)
Find Max of 2 Numbers using
27
Ternary Operator (?:)
Find Min of 2 Numbers using
28
Ternary Operator (?:)
Find Max of 3 Numbers using
29
Ternary Operator (?:)
Find Min of 3 Numbers using
30
Ternary Operator (?:)
Check whether Year is a Leap Year
31
or not using Ternary Operator (?:)
B & B Institute of Technology, Vallabh Vidyanagar
Computer Department (Self Finance)
Subject: Basic Computer Programming

INDEX
Sr. Practical Page Faculty Sign Marks
Practical Title
No. Date No. & Date / 10
32 Demonstrate Simple if
Find whether person is eligible to
33
vote or not using if..else
34 Find Odd or Even using if..else
Find whether year is leap year or not
35
using if..else
Find maximum of 2 numbers using
36
if..else
Find minimum of 2 numbers using
37
if..else
Find maximum of 3 numbers using
38
nested if..else
Find minimum of 3 numbers using
39
nested if..else
Find student got which class?
Distinction, 1st Class, 2nd Class,
40
Pass Class or Fail using ELSE..IF
LADDER statement.
Calculate Discount on Mill Cloth &
41
Handloom Item using else..if ladder
Calculate Electricity Light Bill using
42
else..if ladder
Convert alphabet into opposite case
43 (lower to upper) or (upper to lower)
using else..if ladder
WAP that makes calculator using
44
SWITCH case. (+ - * / %).
Check whether alphabet is a vowel,
45 consonant, digit or a special
character using SWITCH case.
B & B Institute of Technology, Vallabh Vidyanagar
Computer Department (Self Finance)
Subject: Basic Computer Programming

INDEX
Sr. Practical Page Faculty Sign Marks
Practical Title
No. Date No. & Date / 10
Using backward goto statement
1) Print numbers between 1 to N (1 2 3 …. N)
46 2) Find Sum of 1 to N (1+2+3+…+N)
3) Find Factorial of N (1*2*3*..*N)
4) Print Multiplication Table of N
Using forward goto statement
47
Find whether number is Odd or Even
Using while & do..while statements
1) Print numbers between 1 to N (1 2 3 …. N)
2) Find Sum of 1 to N (1+2+3+…+N)
3) Find Sum of Series 12 + 22 + 32 +…+N2
General Equation: ( n (n+1) (2n+1)) / 6
4) Find Sum of Series 13 + 23 + 33 +…+N3
General Equation: (n (n+1) / 6)²
5) Find Factorial of N (1*2*3*..*N)
48 6) Print Multiplication Table of N
7) Print All Odd Numbers between 1 to N
8) Print Even Numbers between 1 to N
9) Find Sum of any Given Number
Eg. 123 ~ 1+2+3=6
10) Find Reverse of any Given Number
Eg. 123~ 321
11) Print Fibonacci Series up to given length
12) Print all Prime Numbers between 1 to N
Using for statement
1) Print numbers between 1 to N (1 2 3 …. N)
2) Find Sum of 1 to N (1+2+3+…+N)

49 3) Find Factorial of N (1*2*3*..*N)


4) Print Multiplication Table of N
5) Print All Odd Numbers between 1 to
Print Even Numbers between 1 to N ..
6) Print Prime Numbers between 1 to N
B & B Institute of Technology, Vallabh Vidyanagar
Computer Department (Self Finance)
Subject: Basic Computer Programming

INDEX
Sr. Practical Page Faculty Sign Marks
Practical Title
No. Date No. & Date / 10
Printing Patterns on Output Screen:

1) 4) 7)

2)And its 5) And its 8)


Inverted Inverted

3) Growing & 6) Growing &


Shrinking Shrinking
Triangle Triangle
50
9) 10) 11)

12). 13) 14)

51 Printing values of 1D Array


52 Scanning & Printing 1D Array
53 Finding Maximum from 1D Array
54 Finding Minimum from 1D Array
55 Finding Sum of 1D Array
56 Print all Odd values from 1D Array
57 Print all Even values from 1D Array
B & B Institute of Technology, Vallabh Vidyanagar
Computer Department (Self Finance)
Subject: Basic Computer Programming

INDEX
Sr. Practical Page Faculty Sign Marks
Practical Title
No. Date No. & Date / 10
58 Printing values of 2D Array
59 Scanning & Printing 2D Array
60 Finding Maximum from 2D Array
61 Finding Minimum from 2D Array
62 Finding Sum of 2D Array
63 Print all Odd values from 2D Array
64 Sum of all Odd values in 2D Array
65 Print all Even values from 2D Array
String Handling inbuilt Functions
1. puts() – printing string on o/p
2. gets() – scanning string
3. strlen() – find length of string
4. strupr() – lower case to upper
66
5. strlwr() – upper case to lower
6. strrev() – reverse string
7. strcpy() – copy to another
8. strcmp() – compare 2 strings
9. strcat() – joining 2 string in 1
Finding string length without using
67
inbuilt function strlen()
Converting Uppercase String into
68 Lowercase without using inbuilt
function strlwr()
Converting Lowercase String into
69 Uppecase without using inbuilt
function strupr()
Reversing a String without using
70
inbuilt function strrev().
B & B Institute of Technology, Vallabh Vidyanagar
Computer Department (Self Finance)
Subject: Basic Computer Programming

INDEX
Sr. Practical Page Faculty Sign Marks
Practical Title
No. Date No. & Date / 10
Printing Value & Memory Address of a
71
variable using pointer
72 Modify Variable Value using Pointer Variable
Write a C program to add two integer values
73
using pointers
Write a C program to swap the values of two
74
integer variables using pointer.
76 Concept of Pointer to Pointer (Double Pointer)
77 Concept of Void Pointer
78 Concept of Null Pointer
79 Programs on built in functions of math.h
80 Simple Calculator using UDF
81 Swap 2 Number using UDF
Wap to show example of user defined
82 function (UFD) with no arguments and no
return value
Wap to show example of user defined
83 function (UFD) with no arguments and but
with return value.
Wap to show example of user defined
84 function (UFD) with arguments and no
return value
Wap to show example of user defined
85 function (UFD) with arguments and with
return value.
Wap to show example of recursion printing
86
n times “Hello World
Find the factorial of a number using
87
recursion
Wap to find Factorial & Summation using
88 Recursion
Wap to demonstrate concept of Call By
89
Value
Wap to demonstrate concept of Call By
90
Reference
B & B Institute of Technology, Vallabh Vidyanagar
Computer Department (Self Finance)
Subject: Basic Computer Programming

INDEX
Sr. Practical Page Faculty Sign Marks
Practical Title
No. Date No. & Date / 10
Define a structure named Book having data
members: book name, author name,
91 publisher name & price. Access the data
members and print the same on the output
screen.
Define a structure named Student having
data members roll number, name, branch &
semester.
1. Create structure variable, access data
members from the structure itself
92 and print the same on the output
screen.
2. Access those data members from
void main() by creating a structure
variable and print the same on the
output screen
Demonstrate Array of Structure by making
the structure named Student having roll no,
93
name and marks of 3 subjects. Read and
display data of 5 students.
94 WAP to demonstrate Union
95 WAP to create a text file.
WAP to display contents of a given file.
96 (Read already existing file and show the
same content on output screen)
WAP to read data from keyboard and write
to the file using fprintf() function & also
97
read same data from the file using fscanf()
function.
WAP to copy contents of one file to another
98
file.

You might also like