Create a program that represents a savings account

Assignment Help C/C++ Programming
Reference no: EM131497214

Assignment

In C++, create a program that represents a savings account. The program should be written

1. Create a class named SavingsAccount

2. The class should be defined in its own header file and have at least the following data members and functions:

Data Members

- accountOfficer, represents the account officer who is responsible for the account.

- oDate,represents the date that the account was opened.

- annualInterestRate, represents the interest currently on the account. This value should be the same for all objects created.

- customer, represents the Customer of this account.

-accountNumber, data member to represent the account number of the account.

-balance, data member to represent the current balance of the account.

Data members shared by all objects of the class:

- activeOfficer, represents the current account officer who is creating accounts

- cdate, represents today's date

Member functions:

- Default Constructor(), this constructor should initialize that data members appropriately

- Constructor(), this constructor should initialize that data members customer, savingsBalance, and accountNumber to the corresponding values passed to it.

Note that the data members, accountOfficer, and oDate should be initialized to the activeOfficer and tDate objects respectively.

- modifyInterestRate(), this function should modify the value of the data member annualInterestRate to the value of the parameter passed to it.

- updateSavingsBalance(), this function should calculate the monthly interest and update the savings balance data member with the interest results

- Any other methods as necessary

3. Write a class source code implementation file that contains any necessary declaration of the static variable in global space and code implemenation of all methods in the class.

4. Write a driver program to test this class. The program should:

- Prompt you to enter the current Account Officer on duty.

- Prompt you to enter today's date

- Prompt you to enter current interest rate.

- Create an array of pointers for up to some maximum number of accounts that can be created.

- Allow for the program to continuosly create new accounts (up to maximum) requesting the appropriate information each time.

5. Once all the accounts have been created, the program should:

- invoke a local function accumulateInterest() whose purpose is to update savings balnce for each account created for one year (e.g. 12 months) of savings. This function should take as an argument the array of accounts and accumulate teh interest for one year (i.e. 12 times) on each object of the array.

- invoke a local function to output a blance summary for each account.

Sample Run:

Current Account Officer: John Williams

Current Date: 11/14/2018

Current annual interest rate: 5%

Enter Customer name: Ted Johnson

Enter Starting balance: 10000.0

Enter Customer name: Raul Lopez

Enter Starting balance: 100.0

Enter Customer Name: -

Accumulating Interest for one year...

Account Officer Date Opened Customer Current Balance

John Williams 11/14/2018 Ted Jones $105000.00

John Williams 11/14/2018 Raul Lopez $105.0

Reference no: EM131497214

Questions Cloud

Create a lesson plan that integrates language objectives : Create a lesson plan that integrates language objectives, content objectives, and best instructional practices for ELLs
Describe bocs most recent financial performance : Headquartered in Beijing, China, the Bank of China (BOC) is the oldest bank in the country. As China's most international and diversified bank, BOC has offices.
What would the investor be willing to pay for the loan : what would the investor be willing to pay for the loan?
Straight-line depreciated to zero over five years : A project has an initial investment of $3.5 million, which will be straight-line depreciated to zero over five years
Create a program that represents a savings account : In C++, create a program that represents a savings account. The program should be written. Create a class named SavingsAccount.
Prepare a competitive profile matrix : Michelin has been very successful in the last decade. In your opinion, what strategy changes would Michelin need in 2016?
Find the accounting breakeven point in terms of revenue : Find the accounting breakeven point in terms of revenue and number of units sold per period
What is the sales taxes : A political debate in the United States concerns sales taxes on the Internet. Most states do not collect a sales tax on online products.
Write atm program simulation using matlab to do given tasks : Write an ATM program simulation using MATLAB to do the three common tasks: withdraw, deposit and balance checking using three MATLAB functions.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd