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 17 pages
Exam (elaborations)

COS3711 Assignment 2 (COMPLETE ANSWERS) 2025 - DUE 18 July 2025

Document preview thumbnail
Preview 3 out of 17 pages

100% TRUSTED WORKINGS, EXPLANATIONS & SOLUTIONS

Content preview

COS3711 Assignment
2 (COMPLETE
ANSWERS) 2025 - DUE
18 July 2025
For assistance contact:




100% TRUSTED WORKINGS, EXPLANATIONS & SOLUTIONS

,COS3711 Assignment 2 (COMPLETE
ANSWERS) 2025 - DUE 18 July 2025
Implement an application that tracks items bought from a
store. Screenshots of possible interfaces have been
provided as guidance below. Store application The store
keeps a list of customers so that when something is
purchased from the store, it is recorded against that
customer’s name. Only the customer’s name is required.
Only two items are currently sold in the store currently –
books and magazines, and only the name of the item is
required. Clearly, a list of such items is needed, and the
user should be able to add items to the list. When an item
is added, the application should automatically make a
backup in Downloaded by Vusi Xhumalo () lOMoARcPSD|
COS3711/Assignment 2/2025 3 memory in case
something goes wrong when the application is being
used. Provision should thus be made to restore this list
when necessary. Clearly, for the sake of data integrity,
you do not want the user to create multiple copies of
these lists. When a customer purchases items, a
transaction is recorded. The date/time of the purchase is
noted, as is the name, type, and quantity of each item
purchased as part of the transaction. Use an appropriate
widget to indicate which items have already been added
as part of this transaction. All transactions should be
displayed on the main GUI. A tree model (and appropriate
view) should be used so that a user can see a customer’s
transactions grouped together. Downloaded by Vusi
Xhumalo () lOMoARcPSD| COS3711/Assignment 2/2025 4
The user should be able to broadcast (using UDP) the

, contents of the model in XML format. This task should be
run as a thread in the main application. The required XML
format can be seen in the image in the next section. UDP
receiver application Create a separate application that
simply listens for the broadcast message and displays the
received data (in XML format) on the GUI.

Here’s a breakdown of how you can approach and implement the COS3711
Assignment 2/2025 application:



✅ Key Functional Requirements

You need to implement two applications:



🛒 1. Store Application

🌟 Features:

a) Customer and Item Management

 Add customers (name only).
 Add items (books and magazines; only name required).
 Maintain a single list of each, avoid duplicates.
 Backup and restore item list (stored in memory).

b) Transactions

 Record transactions:
o Customer name
o Date/time
o Item(s) (type, name, quantity)
 Display transactions grouped per customer using a tree model (e.g.,
QTreeView with QStandardItemModel in PyQt5/6 or similar in
JavaFX/Swing if using Java).

Document information

Uploaded on
July 21, 2025
Number of pages
17
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
R48,59

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.
ExamPal
3,3
(21)
Sold
195
Followers
111
Items
946
Last sold
9 months 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