0% found this document useful (0 votes)
3 views4 pages

Programming Assignment

The document outlines a programming assignment for the 2nd semester of a C programming course at Biluru Gurubasava Mahaswamiji Institute of Technology. It includes various problem statements across sections such as control statements, arrays, strings, structures & unions, and functions, each requiring the design of algorithms and C programs with specific outputs. The assignment is due for submission by June 10, 2026, and covers topics like electricity billing, pattern generation, student marks analysis, and more.

Uploaded by

forxml277
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)
3 views4 pages

Programming Assignment

The document outlines a programming assignment for the 2nd semester of a C programming course at Biluru Gurubasava Mahaswamiji Institute of Technology. It includes various problem statements across sections such as control statements, arrays, strings, structures & unions, and functions, each requiring the design of algorithms and C programs with specific outputs. The assignment is due for submission by June 10, 2026, and covers topics like electricity billing, pattern generation, student marks analysis, and more.

Uploaded by

forxml277
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

B. V. V.

Sangha’s
Biluru Gurubasava Mahaswamiji Institute of Technology
Mudhol-587313

PROGRAMMING ASSIGNMENT
Semester:2nd Date: 26/05/2026

Course: Programming in C Code: 1BEIT205 Max. Marks: 25

Course Coordinator: Prof Manjunath G/Prof Navin M Submission: 10/06/2026

Prepare a Report on the following topics. Submit the soft-binded report on or before the
Submission deadline
For each problem statement design algorithm and programme with proper output.

SECTION 1 — STATEMENTS (Control Statements)


Problem 1: Electricity Billing System
Write a C program to generate the monthly electricity bill for a customer based on units
consumed.
Inputs: consumer number, consumer name, connection type (residential/commercial), and
total units consumed.
Requirements:
• Apply slab-wise unit rates based on the connection type.
• Compute tax (if applicable) and final payable amount.
• Display customer details, slab charges, and final bill.
• Allow billing of multiple customers until the user chooses to exit.

Problem 2: Pattern Generator Studio


Write a C program to generate different patterns using loops.
Requirements:
• Display a menu with at least five pattern types (e.g., pyramid, inverted pyramid,
hollow triangle, Pascal triangle, number box).
• Accept pattern type and number of rows from the user.
• Generate the selected pattern using nested loops.
• Allow repetition of pattern generation until exit.

Problem 3: Student Marks Analyzer


Write a C program to process marks of N students in 5 subjects.
Requirements:
• Calculate total, percentage, and grade using selection statements.
• Determine highest total marks and class average.
• Display a full class report containing individual marks and computed results.
B. V. V. Sangha’s
Biluru Gurubasava Mahaswamiji Institute of Technology
Mudhol-587313
• Use switch-case for grade assignment.

SECTION 2 — ARRAYS
Problem 4: Library Stock Tracker
Write a C program using 1-D arrays to manage a list of book IDs.
Requirements:
• Insert new book ID, delete a book ID, and search for an ID using linear/binary search.
• Display the full list of available books after every update.
• Continue operations until the user chooses to exit.

Problem 5: Cricket Score Dashboard


Write a C program using 2-D arrays to store and analyze cricket match performance.
Requirements:
• Store runs scored by each player across multiple matches.
• Compute total runs per player, highest scorer, and average team score.
• Display the match scoreboard in tabular format and announce “Man of the Series”
(highest aggregate runs).

Problem 6: Matrix Computation Toolkit


Write a C program to perform matrix operations using 2-D arrays.
Requirements:
• Accept two matrices and provide a menu for: addition, subtraction, multiplication,
transpose.
• Display results in matrix format.
• If dimensions are incompatible for an operation, show a suitable error message.

SECTION 3 — STRINGS
Problem 7: Email Format Verifier
Write a C program to validate an entered email address using string processing.
Validation Rules:
• Must contain ‘@’ and ‘.’
• No spaces allowed; length ≥ minimum threshold
• ‘.’ must appear only after ‘@’
Display appropriate validation messages for incorrect formats.
B. V. V. Sangha’s
Biluru Gurubasava Mahaswamiji Institute of Technology
Mudhol-587313
Problem 8: Simple Text Editor
Write a C program to simulate a text editor using strings.
Supported operations:
1. Append new text
2. Search for a word
3. Delete a word
4. Replace a word with another
5. Display character count, word count, and line count
Maintain the full text and show updated content after each operation.

Problem 9: Secure Password Strength Analyzer


Write a C program to evaluate the strength of a user-entered password.
Requirements:
• Count uppercase, lowercase, digits, and special characters.
• Rate password as Weak / Medium / Strong / Very Strong based on criteria.
• Suggest missing character types to improve strength.

SECTION 4 — STRUCTURES & UNIONS


Problem 10: Student Academic Record System
Write a C program using structures to store student records containing USN, name,
semester, marks in 5 subjects, total, and SGPA.
Requirements:
• Read and store details of N students.
• Compute total and SGPA for each student.
• Display a rank list in descending order of SGPA.

Problem 11: Employee Payroll Management


Write a C program using structures and functions to compute monthly salaries of
employees.
Requirements:
• Store employee name, code, department, basic pay, allowances, deductions, and net
salary.
• Salary calculation must be implemented in a separate function that receives a
structure as argument.
• Display payroll report in tabular form for all employees.
B. V. V. Sangha’s
Biluru Gurubasava Mahaswamiji Institute of Technology
Mudhol-587313
Problem 12: Hospital Patient Case Sheet
Write a C program using structure + union to store patient case data.
Structure fields: patient ID, name, age, diagnosis, admission date.
Union field: either insurance policy number or emergency contact number (only one
applies).
Display complete case sheets for all patients.

SECTION 5 — FUNCTIONS
Problem 13: Scientific Calculator
Write a menu-driven C program to perform the following using separate functions:
factorial, power, permutation (nPr), combination (nCr), logarithm approximation, and
trigonometric approximation using Taylor series.
Display results for each selected operation.

Problem 14: Banking Transaction System


Write a C program using modular functions to simulate banking operations.
Requirements:
• Maintain account number, account holder name, and balance.
• Implement deposit, withdrawal, balance inquiry, and fund transfer.
• Use pass-by-reference to update account balances.
• Display a summary of transactions.

Problem 15: Recursion Explorer


Write a C program demonstrating recursion for the following operations:
1. Decimal ↔ Binary conversion
2. GCD of two numbers
3. Fibonacci series
4. Towers of Hanoi
Provide outputs showing recursive execution steps wherever applicable.

You might also like