0% found this document useful (0 votes)
6 views10 pages

Final_lab_manual

The document is a lab manual for the Bachelor of Computer Application (BCA) program at the Future Institute of Technology, focusing on programming for problem solving using the C programming language. It outlines course objectives, outcomes, and a series of assignments designed to teach various programming concepts such as loops, functions, and data structures. The manual includes detailed instructions for assignments and experiments, along with a report format for students to document their performance.

Uploaded by

dibyajyoti.pal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views10 pages

Final_lab_manual

The document is a lab manual for the Bachelor of Computer Application (BCA) program at the Future Institute of Technology, focusing on programming for problem solving using the C programming language. It outlines course objectives, outcomes, and a series of assignments designed to teach various programming concepts such as loops, functions, and data structures. The manual includes detailed instructions for assignments and experiments, along with a report format for students to document their performance.

Uploaded by

dibyajyoti.pal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

FUTURE INSTITUTE OF TECHNOLOGY

DEPARTMENT OF
Bachelor of Computer Application(BCA)
LAB MANUAL
Programming for Problem Solving

NAME :
UNIVERSITY ROLL NO :
NAME OF LABORATORY : Programming for Problem Solving
CODE : BCAC192

DEPARTMENT : Bachelor of Computer Application(BCA)


YEAR/SEMESTER : 1st/1st
CREDIT POINTS : 2
CONTACT HOURS/WEEK : 3
Future Institute of Technology
Department of BCA

LABORATORY NUMBER : LAB1

LOCATION : ROOM NO 318-B

DEPARTMENT : Bachelor of Computer Application(BCA)

TEACHER-IN-CHARGE : DIBYA JYOTI PAL

GROUP DAY TIME FACULTY LAB ASSISTANT


A
B

SUBJECT AREA Programming for Problem Solving

PREREQUISITE Programming for Problem Solving

COURSE OBJECTIVES 1) This course is designed to provide a comprehensive study of the C


programming language.
2) It stresses the strengths of C, which provide students with the
means of writing efficient, maintainable, and portable code.
3) The nature of C language is emphasized in the wide variety of
examples and applications.
4) To learn and acquire art of computer programming.
5) To know the basics about a structured oriented programming
language and how to use the same for solving a problem.
COURSE OUTCOMES Upon completion of the subject, students will be able to:
1) Understand the basic terminology used in computer programming.
2) Write, compile and debug programs in C language.
3) Use different data types in a computer program.
4) Design programs involving decision structures, loops and functions.
5) Explain the difference between call by value and call by reference.
6) Understand the dynamics of memory by the use of pointers.
7) Use different data structures and create/update basic data files.
Future Institute of Technology
Department of BCA

INDEX
Assignment Date of Title of Page No. Remarks Teacher’s
No./Expt. No. Performance Assignment/Expt. Signature
Future Institute of Technology
Department of BCA

Introduction Programs (ASSIGNMENT I ) :

1. Write a C program to Swap the value of two Variables.


(Using a 3rd Variable & without Using a 3rd Variable).

2. Write a Program in C to Make a Simple Calculator (Taking two Inputs & calculate
their Addition, Subtraction. Multiplication, Division).
3. Write a C program to find out the Area of a Rectangle.

4. Write a C program to find out the Area of a Circle.

5. Write a c program to calculate the simple interest where principle amount, rate of
interest and time period is given.
6. Write a C program to convert temperature from Fahrenheit to Celsius.

If-Else (ASSIGNMENT II ) :

7. Write a Program in C to find whether a number is EVEN or ODD.

8. Write a Program in C to find the Largest of Three Numbers.

9. Write a Program in C to enter marks of five subjects. Find the Sum and the Average
of them and then assign grade to the students according to the rule below
AVG GRADE

>=90% to <=100% O

>=80% to <=89% E

>=70% to <=79% A

>=60% to <=69% B

>=50% to <=59% C

>=40% to <=49% D

>40% FAIL

10. Write a Program in C to check whether a Year is Leap year or not.


Future Institute of Technology
Department of BCA

Loops ( For, While & Do-While) (ASSIGNMENT III ):

11. Write a Program in C to compute the Factorial of a Number.

12. Write a Program in C to find the sum of the following series

(a) S=1 + 2 + 3 + 4 + . . . . . + N (Input N).

(b) S=1 + 3 + 5 + 7 + . . . . . + N (Input N).

13. Write a Program in C to Generate the Fibonacci Series up to Nth Term.


1 + 1 + 2 + 3 + 5 + 8 + 13 + . . . . + Nth Term

14. Write a Program in C to find the Sum of the Digits of a Number.


15. Write a Program in C to find the Reverse of a Number.
16. Write a Program in C to Generate the Fibonacci Series up to Nth Term.
0 1 1 2 3 5 8 13 . . . . . . . upto nth
17. Write Programs in C to generate the following patterns up to Specified number of
Rows:

(a) ** (b) * * * *
(a) (b) * * * *
** ** * * *
* * *
** ** ** * *
* *
** ** ** ** *
*

(c) 1 (d) 1

2 2 2 3

3 3 3 4 5 6

4 4 4 4 7 8 9 10

18. Write a Program in C to check whether a number is Prime or not.


Future Institute of Technology
Department of BCA

19. Write a Program in C to find the sum of all the Prime numbers between a given
range of numbers.

20. Write a Program in C to find the GCD & LCM of two given numbers

21. Write a Program in C to find the sum of all the Even and Odd numbers between 1
and 100.

22. Write a Program in C o find & Print the Sum of all the Numbers Divisible by 7 within
a given Range.

23. Write a C program for determining whether a number is a Perfect number or not.
(e.g. 28 is a Perfect Number because Sum of the Divisor of 28 = 1+2+4+7+14
=28.)

24. Write a C program for determining how many Perfect numbers exist within a given
range.
25. Write a C program for determining whether a number is an Armstrong number or
not.
(e.g. 153 is an Armstrong number because 13 + 53 + 33 = 153.)

26. Write a C program for determining whether a number is a Pearson number or not.
(e.g. 145 is a Pearson number because 1! + 4! + 5! =145.)

27. Write a C program for determining how many Pearson numbers exist within a given
range.

Switch-Case (ASSIGNMENT IV ) :

28. Write a Program in C to create a menu driven calculator using switch case. The menu
should look like:
Menu Driven Calculator

a. Addition
b. Subtraction
c. Multiplication
d. Division
e. Modulus
Enter your Choice:
Future Institute of Technology
Department of BCA

29. Write a Program in C to calculate the area of a Triangle, Rectangle or a Circle using a
menu driven programming such that:

1. Triangle
2. Rectangle
3. Circle
4. Exit

1D Array (ASSIGNMENT ):

30. Write a Program in C to implement the Decimal to Binary Conversation.

31. Write a Program in C to implement the Binary to Decimal Conversation.

32. Write a Program in C to check Even & Odd Number in an Array.

33. Write a Program in C to check Maximum & Minimum Number in an Array.

34. Write a Program in C to Sort the Number in an Array.

35. Write a Program in C to Search an Element in an Array.

2D Array (ASSIGNMENT –VI ) :

36. Write a Program in C to show the elements of a Matrix.

37. Write a Program in C to find the Sum of two Matrixes.

38. Write a Program in C to find the Difference of two Matrixes.

39. Write a Program in C to find the Multiplication of two Matrixes.


Future Institute of Technology
Department of BCA

40. Write a Program in C to find the Transpose of a Matrix.

Function (ASSIGNMENT VII ):

41. Write a Program in C to find the Factorial of a given number using function.

42. Write a Program in C to find the GCD & LCM of two given numbers using function.

43. Write a Program in C to find the sum of the series: (Calculate the factorials using
function)

(a) S=1 + 2 + 3 + 4 + 5 + . . .

(b) S=1 + 1/3 + 1/9 + 1/27 + . . .

(c) S= 1! + 2! + 3! + 4! + . . .

Pointer & Strings(ASSIGNMENT VIII):

44. Write a Program in C to swap 2 numbers using pointers & function.


45. Write a Program in C to sort an array of numbers using pointers & function.
46. Implement the following standard string library functions using pointers: strlen(),
strcpy, strcat(), strcmp();
47. Write a Program in C to sort an array using pointers & function.

Structure, Union & File (ASSIGNMENT IX):

48. Write a Program in C to enter student details: roll, name, marks1, marks2, marks3,
total and sort by total. Also print the details of the student with highest total marks.
Use structure.
49. Write a Program in C to enter student details: roll, name, marks1, marks2, marks3,
total and sort by total. Also print the details of the student with highest total marks.
Use Union.
Future Institute of Technology
Department of BCA

50. Write a Program in C to read and write to a file


51. Write a Program in C to create and count number of characters in a file
52. Write a Program in C to concatenate contents of a file f1 to the contents of another
file f1 and make the cursor wait at the end of the file.
Future Institute of Technology
Department of BCA

REPORT ON: …………………………………………………………………………………………………………………

NAME: …………………………………………………………………………………………………………………

DEPARTMENT: …………………………………………………………………………………………………………………

ROLL NO. ……………….. SEMESTER: …………..… YEAR: ……………………….

EXPT. NO.: …………………………………………………………………………………………………………………

TITLE: ………………………………………………………………………………………………………………..

………………………………………………………………………………………………………………..

………………………………………………………………………………………………………………..

OBJECTIVE: …………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

CO-WORKERS:

1 ………………………………………..

2 ……………………………………….. DATE OF PERFORMANCE: …………………………………

3 ………………………………………. DATE OF SUBMISSION: ………………………………..

MARKS/GRADE: …………………………………

TEACHER’S SIGNATURE:………………………………… DATE:………………………..

You might also like