Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4,6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 16 pages
Exam (elaborations)

COS3711 Assignment 2 2025 Due 18 July 2025.

Document preview thumbnail
Preview 3 out of 16 pages

COS3711 Assignment 2 2025 Due 18 July 2025. 100% solved answers.Stop starting from scratch.Download your copy today and get a head start.

Content preview

COS3711
Assignment 2
Due 18 July 2025

,COS3711 – Assignment 2: Advanced Programming Project
1. Introduction

This project involves the design and implementation of a Store Management System
using C++ and the Qt framework. The development process emphasizes manual
memory handling, multithreaded programming, and network communication via UDP
broadcasting, while intentionally avoiding the use of Qt Designer for GUI construction.

The system architecture adopts a modular and object-oriented approach, ensuring code
reusability, extensibility, and maintainability. It draws upon principles from key software
engineering methodologies and design patterns as described in:

 Design Patterns: Elements of Reusable Object-Oriented Software by Gamma et
al. (1995), and
 Software Engineering: A Practitioner’s Approach by Pressman & Maxim (2020).

Key technical objectives include:

 Creating a GUI-based desktop application without the Qt Designer tool.
 Manually managing memory with explicit use of new and delete.
 Implementing multithreading using QThread.
 Broadcasting and receiving messages via the User Datagram Protocol (UDP).
 Employing classical object-oriented design patterns and coding standards.

2. System Architecture

2.1 Project Structure and Directory Layout

The solution is split into two standalone applications:

1. StoreApp – Handles store operations and broadcasts data over UDP.
2. ReceiverApp – Listens for UDP broadcasts and displays incoming information.

The directory layout follows a clean and modular structure:

, objectivec
CopyEdit
COS3711_Assignment2/

├── StoreApp/
│ ├── CMakeLists.txt
│ ├── main.cpp
│ ├── mainwindow.h / .cpp
│ ├── customer.h / .cpp
│ ├── product.h / .cpp
│ ├── transaction.h / .cpp
│ ├── broadcaster.h / .cpp
│ ├── workerthread.h / .cpp

├── ReceiverApp/
│ ├── CMakeLists.txt
│ ├── main.cpp
│ ├── mainwindow.h / .cpp
│ ├── receiver.h / .cpp

└── CMakeLists.txt (root)

2.2 Component Overview


🔹 StoreApp


The StoreApp serves as the primary interface for managing store operations. It allows
users to:

 Add and manage customers and products,
 Record transactions,
 Broadcast transaction summaries over the network via UDP.

Document information

Uploaded on
July 4, 2025
Number of pages
16
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
R94,72

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
AcademicAnchor
3,6
(11)
Sold
50
Followers
1
Items
382
Last sold
1 month ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions