Practical learning · 9 projects
C Programming (from zero to systems): projects and labs
Learn by doing: labs for each module, a project for each level, a capstone and a project exam. Every step is checked, and your work stays on this device.
Beginner
- Lab1.5 h · 5 stepsLab: a canteen thali billThe canteen at an engineering college in Nagpur wants a small program that prints a thali bill with GST. You install and check gcc, print the sizes of the basic types, read the order with scanf, print the bill with printf, and reject bad input.Not started
- Lab1.5 h · 4 stepsLab: slab-wise electricity billsIndian electricity boards charge by slabs: the first units are cheap and each slab above costs more. You write the slab rule in JavaScript first and test it here, then write the same logic in C with if/else, bill a whole list of meter readings in a loop, and print an average with a cast.Not started
- Lab2 h · 4 stepsLab: a class's marks in arraysA polytechnic lecturer keeps internal marks for eight students in two arrays: roll numbers and marks. You write functions for the average and the topper, sort both arrays together by roll number with bubble sort, and look students up with binary search, which you first write and test in JavaScript.Not started
- Lab2 h · 4 stepsLab: checking UPI IDsA payments start-up in Bengaluru gets lists of UPI IDs (like asha.k@okaxis) typed by shopkeepers. You write the validation rules in JavaScript and test them here, then build a C program that reads each line safely with fgets, cleans it, validates it with <ctype.h> and splits it into user and bank parts without overflowing a buffer.Not started
- Project5 h · 7 stepsProject: a campus ATM simulatorBuild a console ATM for a college campus: it checks the PIN with three tries, follows withdrawal rules, counts out Rs 500, 200 and 100 notes, shows a menu with a balance and a mini statement, and never hangs on bad input. The note-counting rule is written and tested in JavaScript first.Not started
Intermediate
- Project6 h · 6 stepsProject: a clinic token queueDr Mehta's clinic in Nagpur gives every patient a token, and calls patients aged 60 and over first. You build the queue in C as a multi-file program with a Makefile: a struct for each patient, a heap array that grows with realloc, seniors-first calling with memmove, a text save file so the queue survives a restart, and a clean valgrind run.Not started
- Project exam2.5 h · 8 tasksProject exam: semester results in CA timed practical exam in the style of a university lab exam or a placement coding round. In two and a half hours you build a results processor for an engineering class: grades, SGPA, a rank list, a CSV file, error handling, and clean valgrind and sanitizer runs. Every task is checked from the output you paste; no hints or answers are shown until you hand it in.Not taken
Expert
- Project8 h · 7 stepsProject: a cold-chain temperature loggerVaccines must stay between 2 and 8 °C all the way from the factory to a village health centre. You write firmware-style C for a fridge logger: a ring buffer with unit tests, a status register driven by bit masks, a moving average, then you use AddressSanitizer to find a real bug, gdb to inspect the alarm path, and size to see how much flash the code needs.Not started
- Capstone14 h · 11 stepsCapstone: kirana stock and GST billing in CBuild a complete command-line billing system for a kirana shop in C: stock kept in a heap array and saved to a binary file, GST invoices worked out in paise with CGST and SGST, Indian digit grouping, a low-stock report sorted with qsort, unit tests, a Makefile, a clean valgrind and sanitizer run, and a git repository with a README you can show an employer.Not started