2025 - DUE 18 July 2025; 100% TRUSTED
Complete, trusted solutions and explanations.
WITH REAL CODE
This COS3711 Assignment 2 task requires you to build two Qt-
based C++ GUI applications:
1. Store Application – Tracks customers, items, transactions,
with UDP broadcast.
2. Receiver Application – Listens to UDP broadcasts and
displays XML.
PROJECT OVERVIEW
Part 1: Store Application (Qt GUI App)
Allows adding customers and items (books & magazines).
Tracks transactions with datetime, item type, name, and
quantity.
Stores items and transactions in memory with auto-
backup and restore.
Displays grouped transactions using a tree model.
Broadcasts XML over UDP in a separate thread.
Part 2: UDP Receiver Application (Qt GUI App)
Listens for incoming UDP broadcasts.
, Displays the received XML in a text box or similar widget.
🔧 TECHNOLOGIES TO USE
C++
Qt 6 (Qt Widgets)
Qt UDP (QUdpSocket)
XML (QDomDocument or QXmlStreamWriter)
CMake (as required)
Singleton & Factory Method Design Patterns
📁 PROJECT STRUCTURE
bash
CopyEdit
Assignment2/
│
├── StoreApp/ <-- Part 1
│ ├── main.cpp
│ ├── MainWindow.ui
│ ├── MainWindow.cpp/.h
│ ├── Models/