Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 134: Chapter 13 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 13 Account class (see section 13.13).
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
$12,000.
First Month of Transactions:
withdraw $420, deposit $465, withdraw $215, interest payment at
2.11%APR
Print the statement
Clear the Statement
Second Month of Transactions:
withdraw $1356, deposit $474, interest payment at 2.01%
Print the statement
Turn in your C++ 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 (e.g., a header comment).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

Students also viewed these Databases questions

Question

Define Management by exception

Answered: 1 week ago

Question

Explain the importance of staffing in business organisations

Answered: 1 week ago

Question

What are the types of forms of communication ?

Answered: 1 week ago