Assignment 3 2026
Unique number:
Due date: 11 August 2026
Question 1 GetStudent Application
The program can be created as a simple Qt Widgets C++ application. The user enters a
student number, module code and mark, then clicks Add. The program checks the
information before printing it to the console.
, Question 1 GetStudent Application
The program can be created as a simple Qt Widgets C++ application. The user enters a
student number, module code and mark, then clicks Add. The program checks the
information before printing it to the console.
1.1 GUI Design
Create the following widgets in Qt Designer:
Widget Object name Purpose
QLabel studentLabel Student Number
QLineEdit studentEdit Enter student number
QLabel moduleLabel Module Code
QLineEdit moduleEdit Enter module code
QLabel markLabel Mark
QSpinBox markSpinBox Enter mark
QPushButton addButton Add information
The student number field must accept four digits. The module field must accept three
uppercase letters, followed by three digits and one letter or number. The mark must remain
between 0 and 100.
1.2 Input Masks
Set the following input masks in Qt Designer:
For the student number:
9999
For the module code:
>AAA999N