Answered step by step
Verified Expert Solution
Question
1 Approved Answer
And also below is the output file. main.cpp #include #include #include account2.h #include account2_output.h using namespace std; using namespace DS; int main() { cout 0
And also below is the output file.
main.cpp
#include#include #include "account2.h" #include "account2_output.h" using namespace std; using namespace DS; int main() { cout 0 savings.deposit(-1000); cout 0 savings.withdraw(-1000); cout
account2_output.h :
#ifndef PROJECT_SAVINGS_ACCOUNT_OUTPUT_H #define PROJECT_SAVINGS_ACCOUNT_OUTPUT_H #include#include namespace DS { //Precondition: None //Postcondition: Output to stream, in the format of // day: DAYNUM, balance: $x.xx std::ostream &operator - Classes - Containers - Dynamic Arrays Program Objective Ooops! You work for a bank that has a program with a dependency of the account class. Unfortunately the hard drive that contained the source code for the account class went bad and no backup can be found. Obviously, this means you bank needs to address this issue. However, your task is to recreate the account class. The good news is that your company was able to locate a tester of the account class and one helper function to output the class. Using these two files, you should be able to re-egineer acocunth and account.cpp to work as originally designed. Since you are the coder now, the class will most likely be even better than the original. Implement the account class Implement the account class with no std::vector or vectors in the header file or implementation class. All of this is a dynamic array class. Below is the main driver file. - Classes - Containers - Dynamic Arrays Program Objective Ooops! You work for a bank that has a program with a dependency of the account class. Unfortunately the hard drive that contained the source code for the account class went bad and no backup can be found. Obviously, this means you bank needs to address this issue. However, your task is to recreate the account class. The good news is that your company was able to locate a tester of the account class and one helper function to output the class. Using these two files, you should be able to re-egineer acocunth and account.cpp to work as originally designed. Since you are the coder now, the class will most likely be even better than the original. Implement the account class Implement the account class with no std::vector or vectors in the header file or implementation class. All of this is a dynamic array class. Below is the main driver file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started