100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

COS3711 Assignment 2 (COMPLETE ANSWERS) Semester 1 2025 – DUE 18 July 2025; 100% correct solutions and explanations.

Puntuación
-
Vendido
-
Páginas
18
Grado
A
Subido en
12-07-2025
Escrito en
2024/2025

COS3711 Assignment 2 (COMPLETE ANSWERS) Semester 1 2025 – DUE 18 July 2025; 100% correct solutions and explanations. 1. Introduction Please read this whole assignment tutorial letter before starting to ensure that you know what is expected of you and you do not get surprised by some requirement later in the development process. Use CMake to set up the projects and use QMainWindow instances for the user interfaces so that you can implement the functionality provided by a QMainWindow (such as menus, a toolbar, and a status bar) to meet the requirements of the scenario given below. Please note that you must not use Qt Designer, and you are expected to manually set up GUIs to ensure that you properly handle memory using Qt’s parent-child functionality. Marks will also be awarded for following good programming practice. • Follow standard naming conventions: class names start with a capital letter, variable and function names start with a lowercase letter, using camelCase for names made up of multiple words. • Ensure consistent code layout and use of blank lines. • Use forward class declarations in header files. • Use initialiser lists in constructors. • Have proper GUI management: setting cursor focus, sequential tabbing, clearing input widgets (like text input fields being cleared and spin boxes being returned to some default value), and enabling and disabling buttons/menu items as appropriate. • Provide appropriate user feedback. • Your code should build and run without any warnings. Consider the following scenario and then design a solution to meet the requirements listed. 2. Scenario 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

Mostrar más Leer menos
Institución
Grado









Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Libro relacionado

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
12 de julio de 2025
Número de páginas
18
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

,COS3711 Assignment 2 (COMPLETE ANSWERS) Semester 1
2025 – DUE 18 July 2025; 100% correct solutions and
explanations.
Assignment Breakdown and Development Guide

📘 1. Application Overview
You must develop two separate applications:

Application Description
Allows management of customers, items
Store (books/magazines), and recording transactions.
Application Also broadcasts the data as XML using UDP in a
thread.
UDP Receiver Receives the XML broadcast via UDP and
Application displays it in a GUI.


🛠️ 2. Development Requirements

✅ Project Setup
 Use CMake for both applications.
 Do not use Qt Designer – all GUI code must be written
manually.
 Derive your main window from QMainWindow.
 Ensure memory management through parent-child hierarchy
and smart pointers (or raw pointers with proper deletion if
using Qt parent management).
 Follow the required coding standards:
o CamelCase for class names, camelCase for
variables/functions.
o Use forward declarations where applicable.

, o Use initializer lists in constructors.
o Consistent indentation, spacing, and blank lines.


️ 3. Functional Requirements per Application



📦 Store Application

Data structures to design:
 Customer class (name)
 Item class (name, type [book/magazine], optionally price,
quantity available)
 Transaction class (customer, datetime, list of item purchases)
 Purchase class (item, quantity)
GUI:
 Main window with:
o Menu bar (e.g., File, Help, Customer, Item)
o Toolbar (e.g., Add Customer, Add Item, Make Purchase)

o Status bar
o TreeView showing customers and their grouped
transactions (use QTreeView and QStandardItemModel)
 Dialogs:
o Add Customer
o Add Item
o Purchase Items
 Item backup/restore (keep a memory backup in case of
rollback or error)
Networking:
$2.82
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
MasterVincent University of South Africa (Unisa)
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
2565
Miembro desde
2 año
Número de seguidores
452
Documentos
1529
Última venta
23 horas hace
MasterVincent

On this page, you find all documents, package deals, and flashcards offered by seller MasterVincent.

4.1

376 reseñas

5
205
4
68
3
51
2
24
1
28

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes