Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4.2 TrustPilot
logo-home
Examen

COS3711 Assignment 1 (100% COMPLETE ANSWERS) 2025

Vendu
14
Pages
22
Qualité
A+
Publié le
22-03-2025
Écrit en
2024/2025

Advanced Programming - COS3711 Assignment 1 2025 ;100 % TRUSTED workings, Expert Solved, Explanations and Solutions. For assistance call or W.h.a.t.s.a.p.p us on ...(.+.2.5.4.7.7.9.5.4.0.1.3.2)...........

Établissement
Cours










Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

Livre connecté

École, étude et sujet

Établissement
Cours

Infos sur le Document

Publié le
22 mars 2025
Nombre de pages
22
Écrit en
2024/2025
Type
Examen
Contenu
Questions et réponses

Sujets

Aperçu du contenu

COS3711
ASSIGNMENT 1 2025

UNIQUE NO.
DUE DATE: 2025

, lOMoARcPSD|21997160




Assignment 1

1. Introduction

Please note that Qt Designer should not be used, 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, for example, naming
conventions, code layout, using forward class declarations and initialiser lists in constructors, and
GUI handling like setting focus, tabbing and clearing input widgets (like text input fields being
cleared and spin boxes being returned to some default value), and providing appropriate user
feedback. Your code should build and run without any warnings.

2. Question 1

Write a console application that can be run from the command line using the following forms:
count // run without any parameters
count file1.txt // pass one file name
count file1.txt fileTwo.txt // pass more than one file name
count –a –b file1.txt fileTwo.txt // pass flags to change
behaviour
count –ab –c file1.txt // pass flags in an alternative way

If no arguments are provided, then print a message describing what arguments should be
included.

The application should, using regular expressions, count the number of occurrences of each of
the following in the text files given.
• If the –a flag is set, count the number of words longer than 4 characters that start with a capital
letter. There may be further capital letters in the word.
• If the –b flag is set, count the number of words that are hyphenated. This hyphen should not
be at the start or end of a word.
• If the –c flag is set, count the number of words that start and end on the same character.
• If the –d flag is set, count the number of words that do not start with a vowel. Note that these
words can start with any character, and do not just have to start with alphabetic characters.
If no flags are provided, it is assumed that all counts should be performed.

It is suggested that you remove all whitespace at the start and end of the document, as well are
removing all punctuation (.,?!:; and so on) – try doing this using a regular expression. Assume
that there is only 1 space between words.

Remember that to set command line arguments in Qt Creator, click on Projects in the left menu,
click on the Run menu and enter the arguments in the Command line arguments field. You can
also click the Run in terminal check box.

, lOMoARcPSD|21997160




COS3711/Assignment 1/2025




See the screenshot below for an example of the output for the arguments that were used above.




Question 2

Create a graphical user interface that allows a user to deposit or withdraw an amount. Display the current
date on the interface. Below is an example of such an interface.




Create a Transaction class that stores the date, time, amount, and type of transaction (deposit or
withdrawal, implemented as an enum). Transactions should be handled as pointers.
2,38 €
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Avis des acheteurs vérifiés

Affichage de tous les avis
7 mois de cela

1,0

1 revues

5
0
4
0
3
0
2
0
1
1
Avis fiables sur Stuvia

Tous les avis sont réalisés par de vrais utilisateurs de Stuvia après des achats vérifiés.

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
LIBRARYpro University of South Africa (Unisa)
S'abonner Vous devez être connecté afin de pouvoir suivre les étudiants ou les formations
Vendu
10520
Membre depuis
2 année
Nombre de followers
4904
Documents
4815
Dernière vente
3 jours de cela
LIBRARY

On this page, you find all documents, Package Deals, and Flashcards offered by seller LIBRARYpro (LIBRARY). Knowledge is Power. #You already got my attention!

3,7

1457 revues

5
683
4
235
3
243
2
78
1
218

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions