Question: CSC 1 3 4 : Chapter 1 3 Programming Project Individual work, you may use any resource, but the work must be your own. Please
CSC : Chapter Programming Project
Individual work, you may use any resource, but the work must be your own. Please
include with your solution a statement that this is your own work.
Account class with a statement method
Make the following changes to the Chapter Account class see section
Code Specifications:
Add an array or vector of strings to hold a sequence of transaction
descriptions for the account. For each transaction, add an appropriate string to
this array or vector.
Add a string member variable called accountName to the Account class to
identify the name of the account on the statement.
Write a member function called getStatement that creates an account
statement HINT: a string The statement should include the account name
along with the descriptions of recent transactions. This method can either return
a string version of the statement to the calling program or it can print the
statement directly from the member function.
In the statement, account for the following types of transactions: New Account,
initial deposit, deposit, withdrawal, interest payment.
Add a method called clearStatement to reset or clear the statement.
Include a screenshot showing your Account class tested with the following program:
Create an Account:
Label this account Tom Smith Savings, with an initial deposit of
$
First Month of Transactions:
withdraw $ deposit $ withdraw $ interest payment at
APR
Print the statement
Clear the Statement
Second Month of Transactions:
withdraw $ deposit $ interest payment at
Print the statement
Turn in your source code solution file and a testing screenshot that shows you
successfully compiled and tested the program or a ZIP of these files Be sure your
name is visible in the screenshot as the author of the code eg a header comment
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
