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
Other

COS2614 Assignment 3 2023 [Link to whole project on google drive]

Rating
4.0
(1)
Sold
14
Pages
31
Uploaded on
12-08-2023
Written in
2023/2024

Solution to Assignment 3 Solution to Q1-BankAccount, Q2-TrafficLight, Q3-StockRecorder. This document contains all the coding needed to complete this assignment (class, header and img files). The last page contains a google drive link to the entire project in Qt, just download test and play around. All requirements have been fulfilled and all 3 projects are 100% compiling!!! Guaranteed very good marks!

Show more Read less
Institution
Module

Content preview

COS2614
Programming: Contemporary Concepts
Assignment 3 & 4 / Test 2 | Semester 1 & 2 | 2023


✓ This document contains all the necessary code and screenshots (output) for all
3 questions.
✓ Assignment 3: Q1 –BankAccount (Console) | Q2 – TrafficLight (GUI)
✓ Assignment 4/Test 2: Q3 – StockRecorder(GUI)
✓ For more understanding the last page has a link to Google Drive to the entire
project in Qt. Just download and run in Qt to view and test working project.




All requirements have been fulfilled and all 3 projects are 100%
compiling!!!

, QUESTION 1: BankAccount (Console Application)
Files




Code (Header Files)
balanceenquiry.h

#ifndef BALANCEENQUIRY_H
#define BALANCEENQUIRY_H

#include "transaction.h"

class BalanceEnquiry : public Transaction {
public:
BalanceEnquiry(const std::string& dateTime);

double computeCost() const override;
};

#endif // BALANCEENQUIRY_H


deposit.h

#ifndef DEPOSIT_H
#define DEPOSIT_H

#include "transaction.h"

class Deposit : public Transaction {
private:
double m_Fee;

public:
Deposit(const std::string& dateTime, double fee);

double computeCost() const override;
std::string toString() const override;
};

#endif // DEPOSIT_H

Written for

Institution
Module

Document information

Uploaded on
August 12, 2023
File latest updated on
August 30, 2023
Number of pages
31
Written in
2023/2024
Type
OTHER
Person
Unknown

Subjects

$6.27
Get access to the full document:

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

Reviews from verified buyers

Showing all reviews
2 year ago

4.0

1 reviews

5
0
4
1
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

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.
ExcelTogether University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
564
Member since
5 year
Number of followers
367
Documents
12
Last sold
8 months ago

4.4

71 reviews

5
49
4
11
3
4
2
1
1
6

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 revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

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

Student with book image

“Bought, downloaded, and smashed 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