VTU Developer

Your comprehensive resource for Programming in C Lab - BPOPS103/203

Programming in C Lab

Complete Lab Programs & Resources

BPOPS103/203
Subject Code
04
Credits
50
CIE Marks
50
SEE Marks
100
Total Marks
03
Exam Hours

Program 1

Simple Calculator Simulation

Develop a program to simulate a simple calculator that performs basic arithmetic operations including addition, subtraction, multiplication, and division with proper error handling for division by zero.

Basic Arithmetic Operations

Program 2

Quadratic Equation Roots

Compute the roots of a quadratic equation by accepting the coefficients. Print appropriate messages for real, imaginary, and equal roots using discriminant analysis.

Mathematical Computations

Program 3

Electricity Bill Calculator

Calculate electricity charges based on tiered pricing: first 200 units at 80 paise, next 100 units at 90 paise, beyond 300 units at Rs 1 per unit, with minimum Rs 100 meter charge and 15% surcharge if total exceeds Rs 400.

Conditional Logic & Billing

Program 4

Number Pattern Display

Write a C Program to display a symmetric number pattern by reading the number of rows as input. Pattern shows: 1, 1 2 1, 1 2 3 2 1, 1 2 3 4 3 2 1, etc.

Pattern Programming

Program 5

Binary Search Implementation

Implement Binary Search algorithm on integers. Demonstrate the efficient searching technique with sorted arrays and display the search process with appropriate messages.

Searching Algorithms

Program 6

Matrix Multiplication

Implement Matrix multiplication and validate the rules of multiplication. Check matrix dimensions compatibility and perform multiplication with proper error handling and result display.

Matrix Operations

Program 7

Taylor Series - sin(x)/cos(x)

Compute sin(x)/cos(x) using Taylor series approximation. Compare your result with the built-in library function and print both results with appropriate inferences and accuracy analysis.

Mathematical Series

Program 8

Bubble Sort Algorithm

Sort the given set of N numbers using Bubble sort algorithm. Demonstrate the step-by-step sorting process with comparisons and swaps, showing the array state after each pass.

Sorting Algorithms

Program 9

String Operations Functions

Write functions to implement string operations such as compare, concatenate, and find string length. Use parameter passing techniques to demonstrate modular programming concepts.

String Manipulation

Program 10

Student Records with Structures

Implement structures to read, write and compute average marks of students. List students scoring above and below the average marks for a class of N students with detailed analysis.

Data Structures

Program 11

Statistical Analysis with Pointers

Develop a program using pointers to compute the sum, mean and standard deviation of all elements stored in an array of N real numbers. Demonstrate advanced pointer arithmetic and statistical calculations.

Pointer Arithmetic & Statistics

Program 12

File Copy Program

Write a C program to copy a text file to another, read both the input file name and target file name. Demonstrate file handling operations with proper error checking and resource management.

File Operations
Comments

Replay !

0 Comments

Share Your Thoughts

Please enter your name
Please enter a valid email
Password must be at least 6 characters
Please enter your comment
Email Verification Required
We've sent a 6-digit verification code to . Please enter the code below to verify your email address.
Email Verified Successfully!
Your email has been verified. Would you like to proceed with posting your comment?

Type "YES" to confirm and post your comment, or click Cancel to skip posting.

Preparing your download...