From 571dc57f812a685bda7bd3baf8aaf2ef56feae65 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 28 Mar 2026 16:19:58 +0200 Subject: feat(Week05): Add solutions --- Week05/Exercise03/TaxReport.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Week05/Exercise03/TaxReport.cpp (limited to 'Week05/Exercise03/TaxReport.cpp') diff --git a/Week05/Exercise03/TaxReport.cpp b/Week05/Exercise03/TaxReport.cpp new file mode 100644 index 0000000..2ff321f --- /dev/null +++ b/Week05/Exercise03/TaxReport.cpp @@ -0,0 +1,25 @@ +#include "TaxReport.h" +#include + +TaxReport::TaxReport(unsigned long long PN, unsigned short year, double income, double taxRate) { + this->PN = PN; + this->year = year; + this->income = income; + this->taxRate = taxRate; +} + +unsigned long long TaxReport::GetPN() const { + return PN; +} + +unsigned short TaxReport::GetYear() const { + return year; +} + +double TaxReport::GetIncome() const { + return income; +} + +double TaxReport::GetTaxRate() const { + return taxRate; +} -- cgit v1.3.1-23-gd82d