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

  Take an n x n matrix, and create a new, (n-1) x (n- 1)

take an N x N matrix, and create a new, (N-1) x (N- 1), matrix with each element being the sum of four nearby elements. You need to figure out a way to break the matrix up into squares and iterate through the matrix, while staying within its bounds.

  Write a scanf statement to read in one number (int

1) Write a scanf statement to read in one number (int), and another statement to print out that number.

  Consider an l1 cache with an access time of 1 ns

Suppose that we can change the cache design (size of cache, cache organization) such that we increase H to 0.97, but increase access time to 1.5 ns. What conditions must be met for this change to result in improved performance?

  Program for keeping course list for each student in college

Write a program for keeping a course list for each student in a college. The information about each student should be kept in an object that contains the student's name and a list of courses completed by the student.

  Implement a class called hugeinteger

Using your own Linked List implementation (see attached), implement a class called HugeInteger that represents arbitrary sized integers and supports addition only. You may only use the tools that have introduced in class, and you MAY NOT use Java'..

  Write a program to calculate the area of a circle

Write a program to calculate the area of a circle. The program should use two procedures. The first procedure will print out the program heading and ask the user to enter the radius. The second procedure should calculate the area. The area of the cir..

  Assessment system of a university

Write a program for Assessment system of a University

  Define the sums of every even column of 2d array

Define the sums of every even column of 2D array in C language - Prepare this program in c language. Show all your work.

  Mark the following statements as true or false

Mark the following statements as true or false.

  Matching program that takes input from a text file

need to make a string matching program that takes input from a text file and outputs that match (if there is one) asked from the user. i have done this part , the only problem is that , with the output match , i also need to print some words before a..

  Modify the payroll program

Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked.

  Write a program that declares an array of 10 integers

Write a program that declares an array of 10 integers. Write a loop that accepts 10 values from the keyboard, and write another loop that displays the 10 values. Do not use any subscripts within the two loops; use pointers only.

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