0% found this document useful (0 votes)
24 views

BPC Syllabus

The document outlines a Programming-I course, detailing the curriculum which includes topics such as problem-solving methodologies, basics of programming languages, control statements, arrays, strings, and functions. It also lists textbooks and reference materials, along with a comprehensive list of programming experiments and objectives. Each experiment includes specific tasks to be completed, such as writing programs to perform various operations and problem-solving exercises.

Uploaded by

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

BPC Syllabus

The document outlines a Programming-I course, detailing the curriculum which includes topics such as problem-solving methodologies, basics of programming languages, control statements, arrays, strings, and functions. It also lists textbooks and reference materials, along with a comprehensive list of programming experiments and objectives. Each experiment includes specific tasks to be completed, such as writing programs to perform various operations and problem-solving exercises.

Uploaded by

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

Total Hours per week Total

Course Code Course Name


L T P Hours Credits
4
Programming-I 0 0 4 2

Unit-I: Introduction to Computer and Problem-Solving Methodology


Computer System, Computing Environments, Software, Types of Software and Features of
Software.
Design Tools (Algorithm, Flow-Chart, Pseudo-Code). Types and Generations of
Programming Languages. Compiler, Interpreter, Linker, Loader, Execution of Program.
Develop an Algorithm for Simple Problems.

Unit-II: Basics of Language


Character set, Identifier, Keywords, Constants, Data Types, Preprocessor Directives,
Variables and Declaration, White Space and Escape Sequence, Operators and Expressions,
Type Conversions, Operator Precedence and Associativity, Expression Evaluation, Input
and Output Functions. Computational Problems Solving Based on above Constructs.

Unit-III: Control Statements


Selection (If, Else), Conditional Operator, Iteration (For, While, Do-While), Branching
(Switch, Break, Continue, Goto), Nesting of Control Statements. Problem Solving Based
on Control Statements.

Unit-IV: Arrays and Strings


Defining an Array, One Dimensional Array, Two-Dimensional Array, Multi-Dimensional
Array. Basic Array Operations and Matrix Manipulation Operations (Addition, Subtraction,
and Multiplication). Problem Solving Based on Array.
Strings Definition, String Operations and String Functions. Problem Solving Based on
Strings.

Unit-V: Functions
Introduction, Functions Declaration, Definition, Calling, Return Statement, Parameter
Passing (By Value), Recursion, Library Functions. Problem Solving Based on Functions.

Textbooks:
1. Herbert Schildt, C: The complete Reference, Fourth Edition, Mc-GrawHill.
2. R. Sethi, Programming Language Concepts and Constructs, Pearson Education.
3. .
4. M. Sprankle, Programming and Problem Solving, Pearson Education.
5. R.G. Dromey, How to solve it by Computer, Pearson Education.
6. E. Balguruswamy, Programming in ANSI C by, Tata Mc-GrawHill.
7. Yashavant Kanetkar, Let Us C, BPB.
8. E.Balagurusamy, Fundamentals of Computers, TMH.

Reference Books
1. Kernighan and Ritchie,
2. Programming With C, Schaum Series.
3. A. N. Kamthane, Programming with ANSI and Turbo C, Pearson Education.

List of Experiments
A. Basics of language:
1. Write a program to print hello user on output screen.
2. Write a program to perform arithmetic operation on two numbers.
3. Write a program to find sum of individual digits of any three digits number.
4. Take three numbers as command line arguments and display the sum of those numbers.
5. Use different data types to take input by scanf and display their sizes.
6. Write a program to take three numbers and print their average up to two decimals.
B. Control Statements:
7. Write a program to check weather a number is even or odd
8. Write a program to reverse an integer.
9. Write a program to swap any two numbers using third variable and without using third variable.
10. Write a program to print the following pattern:
*
**
***
****
11. Write a program to print the following pattern:
**
** **
*** ***
********
12. Write a program to print grade of student on the basis of percentage:
i. If per greater than or equal to 75 A grade
ii. If per between 60-75 B grade
iii. If per between 50-60 C grade
iv. If per between 40-50 D grade
v. If per less than 40 Fail
13. Write a program for addition subtraction multiplication division using switch case.
14. Write a program to check given number is Armstrong or not.
15. Write a program to check given number is power of two or not using bitwise operation.
16. Write a program to check given year is leap year or not.
17. Write a program to check given number is palindrome or not.
18. Write a program to check whether the given string is anagram or not.
19. Write a program to print table of any number.
20. Write a program to calculate factorial of any number
21. Write a program to print series of alphabet.
22. Write a program to print Fibonacci series
23. Write a program to check given number is perfect or not
24. Write a program to check given number is prime or not.
25. Write a program to print number in word in between 1-5. Like (1 =one)
26. Write a program to check given char is vowel or consonant
27. Write a program to print name of month according to number.
28. Write a program for convertor
i. For currency convertor
ii. For temperature convertor
iii. For weight convertor
iv. For length convertor
v. For time convertor
vi. For energy convertor
29. Write a program to print series of number from 1-100 without using loop.
C. Arrays and strings:
30. Write a program to find maximum & minimum number from array.
31. Write a program to check how many numbers is prime & not prime in a list
32. Write a program to check how many digits at each index of array
33. Write a program to check (search) given number is present or not present in list.
34. Write a program to arrange (sort) array elements in ascending or descending order
35. Write a program to print a 2*2 matrix.
36. Write a program to find sum of two matrix.
37. Write a program to find multiplication of two matrix.
D. Functions
38. Write a program of string functions.
39. Write a function to find sum of two numbers.
40.. Write a function to calculate factorial of any number.
41. Write a function for call by value to find sum of two numbers.
42. Write a function to pass an integer array as an argument and find sum of array elements
43. Write a function to pass a char array as an argument and find length of string.
44. Write a recursive function to calculate factorial of any number.
45.. Write a program to find the no of char no of word and no of lines from given text input.
Experiment – 1

Objective:
Write a program to print hello user on output screen.
Resources:
1. C compiler (e.g., GCC, Visual Studio).
2. A text editor or integrated development environment (IDE).
3. A computer to run the program.
Algorithm:
1. Start.
2. Include the necessary header file <stdio.h> for input and output operations.
3. Define the main function, which is the entry point of the program.
4. Inside the main function:
a. Use the printf function to print the string "Hello, World!" to the standard output
(typically the console).
b. Optionally, include the escape sequence \n to add a newline character for better
formatting.
5. Return a value (typi-cally 0) to indicate successful execution.
6. End.
Code:
#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
printf("Hello, user!\n"); // Display the greeting message
getch();
}
Output:

You might also like