Implement the account class which contains two private data

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

please write in C++

Implement the Account class which contains two private data elements, an integer accountNumber and a floating-point value accountBalance, and the following default constructor and member functions:

A default constructor that set initial values for accountNumber and accountBalance to 0.

Getter and setter functions for each attribute (accountNumber and accountBalance).

The inputTransaction function, which takes a character value for transactionType ('D' for deposit and 'W' for withdrawal), and a floating-point value for transactionAmount, which updates accountBalance. This function should give an error message if there is no sufficient amount for withdrawal.

The calculateFutureBalance function, which takes annual interest rate and number of years, and then calculates the future balance for the given period. For example if the current amount is 1000, we pass 0.05 as the interest and 1 as the number of years, the amount will be 1050 at the end of the year.

The mortgageYear function, which takes total amount of a mortgage and then calculates the number of years required to pay the mortgage only by using the interest of the current balance. Note that for the mortgage apart from the lump sum we have to pay, there will an interest for the borrowed money.

Let say we have morgage for 100.000 with annual interest rate 8.90 %, and we do annual payments. Lets assume we have 300.000 in our account with 5% interest rate. At the end of first year mortgage will become 108.900 and from my money I will have 15000 interest rate. Then I can reduce the morgage to 93900.

Reference no: EM132101149

Questions Cloud

Services of intermediaries : Why do most people use the services of Intermediaries as opposed to direct finance?
What is the difference when conduct the etl : What is the difference when conduct the ETL with Cooperate information factory and business dimensional lifecycle?
Marketing communications industry : What are current trends affecting the marketing communications industry.
Marketing communications industry : What are relevant issues within the marketing communications industry.
Implement the account class which contains two private data : The calculateFutureBalance function, which takes annual interest rate and number of years, and then calculates the future balance for the given period.
Learning needs of individuals and teams : How does collecting regular feedback on the performance of team members, from relevant sources assist managers in identifying the learning
Interesting pamphlet on customer relations : Ellen, who runs a successful nail salon, ran across a very interesting pamphlet on customer relations.
Calculate the total wage of the worker for the week : An hourly-paid worker have day shift pay rate of $12.50. If the worker works at night, he is paid night shift rate of $17.25.
Successful with retention of repatriates : How can employers be more successful with retention of repatriates?

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