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

  Write a test program to test the various operations

Write the definitions of the member functions as described in the definition of the class testClass.

  Explain in a one to two 1-2 page narrative a use case

as an intern software developer for a retail bank you have been tasked with developing use cases to support the atm

  Containing all the genes in the dna sequence

As described above plus an integer reference parameter, and return a dynamically-allocated array of strings containing all the genes in the DNA sequence. Each string in the array will contain a unique

  Iterative programming problem solving approaches

Write a recursive function void reverse ( ) that reverse a sentence

  Variables - features of good program design

Explain one reason why the variable name in question is acceptable but not recommended, and provide an alternative name that would both satisfy the compiler and be recommended according to variable naming conventions.

  Pointer variables to demonstrate shallow and deep copy

Using C++, write a program that uses pointer variables to demonstrate shallow and deep copy. The program should give the user the choice to do the following:

  Show that regularity is preserved under the shift operation

Show that the regularity is preserved under the shift operation - I have the answer already but i do not understand

  Write a c program to print permutation

Given integer n and permutation of numbers 1,2,..n-1, c program to print permutation that lexicograghically precedes given input permutation if permutation is least print input permutation itself

  Write a c program to enter the numbers until the user wants

Write a C program to enter the numbers until the user wants and in the end display the product of numbers entered by the user.

  Design a nested program

How many levels of nesting are there in this design?

  Displays columns titled "name", "quantity", "price", value

Write a program that displays columns titled "Name", "Quantity", "Price", and "Value". The fourth column contains the result of multiplying each item's quantity by its price. In addition, the program should calculate and display the total value of th..

  Consider the subsequent selection statement where x is an

consider the subsequent selection statement where x is an integer test score between 0 and 100.input xif 0 lt x and x

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