You are to write a basic bank application

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

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 about setter 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! Have fun with this assignment!

Reference no: EM13499406

Questions Cloud

Culture from a psychological point of view : How does advertising work and affect our culture from a psychological point of view?
Management of chronic and terminal illness : How is immunocompetence assessed, in terms of the management of chronic and terminal illness?
Operant conditioning is a process of increasing : Operant conditioning is a process of increasing or decreasing a specific behavior through reinforcement (positive or negative), punishment or extinction. The person operates based on the environment through learned discriminative stimulus.
Models of personality would conceptualize : Briefly describe the way in which the following two models of personality would conceptualize, assess and treat an individual who reports an intense fear (i.e. a phobia) of snakes.
You are to write a basic bank application : 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.
What kind of psychology research method : What kind of psychology research method would be used in learning about your personal family health history?
Generate a random number : Generate a random number between 1 – 5 and 3 – 8 for express and normal lanes, respectively. This represents the arrival time of the first customer into each lane. Set the variable for total time elapsed to 0.
Individual psychotherapy : Individual Psychotherapy, describe the basic function and premise of each one on a child’s recovery. Use outside sources to support your answers.
Contributes to healthy-maladaptive psychological functioning : Pick a part of the brain and discribe how it contributes to healthy and maladaptive psychological functioning. Be sure to include examples to support your descriptions.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Program that takes a number between

Write a program that takes a number between -121 and 121 and output that number in the format of power of 3 (1,3,9,27)example:13 = 9+3+1

  Prepare an accounting for a dorm''s kitchen

The "purpose" of the program is to prepare an accounting (database) for e.g. a dorm's kitchen, to keep track of the consumption of beer for each room.

  Child process to take the role of the number guesser

Write a program in C that takes a number between 1 and 1024 as input on the command line, and then forks a child process to take the role of the number guesser

  Create a program for a company named retail-martprompt the

create a program for a company named retail-martprompt the user to enter an item name one word only a quantity and a

  We base our need to implement composition upon

What criterion, or criteria, should be used to include objects of a class as data members of another class? In other words, what should we base our need to implement composition upon?

  Write a program that asks the user to enter an integer

Write a program that asks the user to enter an integer between 1 and 15. If the number entered is outside that range, your program should print out an error message and re-prompt for another number.

  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.

  Algorithm to determine which items to take to max weight

Write an algorithm to determine which items to take to maximize the weight of his loot bag. He cannot take a fraction of an item and each item must be taken, or left behind. Loot bag size is Z and and the input is an array of item wieghts as integers..

  You will write a program that reads a text file

You will write a program that reads a text file, counts the number of words in the file, and the number of occurrences of each character. It will print to a file the number of words, and the number of occurrences of each character, as well as the ..

  Display the array, the average and the number of days above

Write a program that stores the daily temperatures for the month of April in an array name dailytemp. Calculate the average temperature for the month and the count the number of days that the daily temperature was above the average.

  Taskwrite a bouncing ball video game the balls bounces

taskwrite a bouncing ball video game. the balls bounces within the screen where the two horizontal walls are fixed. the

  Compute for the monthly billing of their customers

An electric company wants to compute for the monthly billing of their customers. the company charges P2.50 per kwh and utility tax of 3% of the current bill shall be added.

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