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.
1. STORE APP STRUCTURE (Project 1)
📂 Folder Structure
bash
CopyEdit
StoreApp/
├── main.cpp
├── MainWindow.h/cpp (QMainWindow)
├── Customer.h/cpp
├── Item.h/cpp
├── Transaction.h/cpp
├── StoreManager.h/cpp
, ├── BackupManager.h/cpp
├── UDPBroadcaster.h/cpp (uses QThread)
├── ui/ (UI .ui files)
└── CMakeLists.txt
🔧 2. STORE APP FEATURES
💡 Use of OOP Classes:
Customer
cpp
CopyEdit
class Customer {
QString name;
QList<Transaction*> transactions;
};
Item
cpp
CopyEdit
enum class ItemType { Book, Magazine };
class Item {