Accounting > QUESTIONS and ANSWERS > InterestCalc.cpp.pdf (All)
#include "InterestCalc.h" #include <iostream> #include <iomanip> using namespace std; //Default constructor InterestCalc::InterestCalc() { initial deposit = 0.00; monthlyDeposit = 0.00; percen ... tInterest = 0.00; number years = 0; } //Setters and getters void InterestCalc::setInitialDeposit(double t_initialDeposit) { initialDeposit = t_initialDeposit; } void InterestCalc::setMonthlyDeposit(double t_monthlyDeposit) { monthlyDeposit = t_monthlyDeposit; } void InterestCalc::setPercentInterest(double t_percentInterest) { percentInterest = t_percentInterest; } void InterestCalc::setNumberYears(int t_numberYears) { numberYears = t_numberYears; } double InterestCalc::getInitialDeposit() { return initial deposit; } double InterestCalc::getMonthlyDeposit() { return monthly deposit; } double InterestCalc::getPercentInterest() { return percentInterest; } int InterestCalc::getNumberYears() { return number years; [Show More]
Last updated: 3 years ago
Preview 1 out of 2 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Aug 04, 2022
Number of pages
2
Written in
All
This document has been written for:
Uploaded
Aug 04, 2022
Downloads
0
Views
108
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·