Website Summary Files Commits Branches @commit @diff @stats
path: root / Week05 / Exercise03 / TaxReport.cpp
diff options
context:
space:
mode:
1 files changed, 25 insertions, 0 deletions
-rw-r--r--Week05/Exercise03/TaxReport.cpp25
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 <iostream>
+
+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;
+}