School Project

Digital Communication System Simulator in C#

A C# programming course project. A console menu demonstrates text coding, modulation, channel transfer and demodulation, either individually or together from input text to the recovered result.

Stages covered

Each link runs on its own so its input and output can be examined.

Source coding

Implements Huffman coding: character frequencies are counted, a prefix code table is built, the compression ratio is computed, and decoding is verified to restore the original text.

Custom data structures

A hand-written linked-list queue, with enqueue and dequeue traced alongside the changing count, plus exception handling verified for dequeuing an empty queue.

Signal modulation

Maps a binary sequence onto a transmittable signal form, the core stage of the whole chain.

Channel simulation

Models how the signal travels through the channel, bridging modulation and demodulation.

Demodulation and recovery

Recovers the binary sequence from the received signal and turns it back into text, checked against the original input.

Reproducible tests

Tests use fixed random seeds to compare inputs and outputs across the communication steps.

Why the plain base class library

The project deliberately limits its dependencies so that every stage stays visible in the code rather than hidden behind a framework.

Zero third-party dependencies

No NuGet package is pulled in beyond xUnit for the test project, so cloning the repository and installing the .NET SDK is enough to run it.

Principles in plain sight

Encoding, modulation and demodulation are all implemented inside the project and can be read alongside the course notes.

Console interaction

Demo entries are chosen by menu number, with no graphical interface needed and identical behaviour on macOS, Windows and Linux.

Course demonstration

Implemented with the C# / .NET 10 base libraries, with xUnit for tests. Demonstrates communication steps without connecting real transmitting or receiving hardware.

Back to projects