Declare and define constructor

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

Basic Bank Application in C++

Learner Objectives:

At the conclusion of this programming assignment, participants should be able to:

Design, implement and test classes in C++

Declare and define constructors

Declare and define destructors

Compare and contrast public and private access specifiers in C++

Describe what is an attribute or data member of a class

Describe what is a method of a class

Apply and implement overloaded functions

Distinguish between pass-by-value and pass-by-reference

Discuss classes versus objects

Overview & Requirements:

Note: This project is similar to the Account Class problem provided in your Deitel and Deitel C How To Program book. You are to write a basic bank application, in C++, that allows the user of the application to manually create, modify, and delete bank accounts. Before you write the application you will need to create a class called Account.

The class Account is used to represent customers' bank accounts. Your class should include four data members to represent the account balance (a double), account number (an integer), customer name (a string), and date the account was opened (a string).

Your class should provide two constructors: one default constructor with no parameters and one constructor with the initial balance, account number, customer name, and date created as parameters.

The second constructor should check the initial balance. If the balance is not >= 0, the balance should be set to 0 and an error message should be displayed.

The class should provide several member functions. Some of which are described below. Remember that you will have to think about other appropriate member functions (think aboutsetter and getter functions!). Member function credit should add an amount to the current balance and store it back into the balance.

Member function debit should withdraw money from the Account, modify the balance, and ensure the debit amount does not exceed the Account's balance. If it does, the balance should be left unmodified and the function should print an appropriate message. Member function printAccountInfo should print the current balance, account number, customer name, and date of the account.

Once you have designed your Account class. You will need to create the main bank program. Note that you can create the main bank program in the main function or you can try to create another class for the main bank program.

The main program needs to display a menu for adding, deleting, modifying, and displaying accounts. You decide appropriate menu features.

Reference no: EM13702691

Questions Cloud

How much later should the younger runner start : An 18-year-old runner can complete a 10.0-km course with an average speed of 4.38 m/s. How much later (in seconds) should the younger runner start
How much time does it take for the impulse : You step onto a hot beach with your bare feet. How much time does it take for the impulse
Find at what time will the magnitude of the velocity be : A particle's constant acceleration is north at 113 m/s2. At t = 0, its velocity vector is 55.6 m/s east. At what time will the magnitude of the velocity be 101 m/s
Calculate the equilibrium constant redox reaction : Problem- Use the tabulated half-cell potentials to calculate the equilibrium constant (K) for the following balanced redox reaction at 25°C. 3 I2(s) + 2 Fe(s) -->2 Fe3+(aq) + 6 I-(aq)
Declare and define constructor : Declare and define constructors and Declare and define destructors - Describe what is an attribute or data member of a class
How far is ramon from the mug : James (90.0 kg) and Ramon (60.0 kg) are 20.0 m apart on a frozen pond (this means they are on a frictionless surface). how far is Ramon from the mug
What mass placed on the other side : A rigid 1.00m long rod is supported at its center. What mass placed 25.0cm on the other side of the support will balance the beam
Estimate what is the spacing between the plates : When a potential difference of 188 V is ap- plied to the plates of a parallel-plate capacitor, the plates carry a surface charge density of magnitude 43 nC/cm2. What is the spacing between the plates
How long does it take the door to open fully : To stay in practice, the Los Angeles Dodges pitcher Clayton Kershaw always throws globs of putty shaped liked baseballs to open doors. Assuming he always hits the edge of the door farthest from the hinge, how long does it take the door to open fully

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