Analyze a basic set of requirements for a problem

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

Analyze a basic set of requirements for a problem

Compose basic C++ language programs

Create basic test cases for a program

Apply arrays, strings, and pointers

Overview and 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.

Reference no: EM13337107

Questions Cloud

Find the electric field at position r along the z axis : A dipole is centered at the origin and has charges q and -q located at z=l/2 and z=-l/2, respectively. Find the electric field at position r along the z axis and also at position r along the x-axis
Find an expression that describes the slope of a density : The density of an ideal gas is found to vary with temperature according to the equation d=PM/RT, where P and M were held constant in this case.
What is the required radius of the pipe : A 100000 liter water tower is to be drained. The pump can pull water out of the tank through a circular opening in the tank at a velocity of 10 meters per second
Determine the total time of flight horizontal range : A shell is fired at an angle 30 degree to the horizontal with a velocity 196 m/s. Find the total time of flight horizontal range and maximum height attained.
Analyze a basic set of requirements for a problem : 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.
Explain the shaper end point in a titration : Which solute would provide the shaper end point in a titration with 0.1 M HCl: use ka or kb values to answer this question. (a) 0.10 M NaOCl or 0.1 M hydroxylamine (b) 0.10 M NH3 or 0.10 M sodium phenolate (c) 0.1 M methylamine or 0.10 M hydroxyla..
With what speed does the bullet hits the theifs car : A police van moving on a highway with a speed of 30 kmph fires a bullet of a theif's car speeding away in the same direction with a speed of 192 kmph.
Sbru moved away from having campus reps with posted : Spring Breaks ''R'' Us (SBRU) is an online travel service that books spring break trips to resorts for college students. The head office comprises 6 members of staff, all of whom are involved in the booking process; the manager and assistant manager ..
Determine the induced emf as the time of origin : A loop of 50 turns and 40cm^(2) rotates with angular velocity of 300 turns per minute normal to a magnetic field of 0.5 T

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Searching f and removing certain states from the hash table

use the class hashT, ''Hashing: Implementation Using Quadratic Probing,'' which uses quadratic probing to resolve collision, to create a hash table to keep track of each state's information. Use the state's name as the key to determine the hash addre..

  Define a class named payment that contains an instance

Define a class named Payment that contains an instance variable of type double that stores the amount of the payment and appropriate accessor and mutator methods.

  Insert the missing code in the c program

You are to insert the missing code in the C program given for combinational equivalence checking. This program will interface with the CUDD package and will parse netlist files in ISCAS85 circuit format. Next, BDDs will be created for each circuit an..

  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 program that takes a positive integer

Write a program that takes a positive integer from the user and prints the rightmost digit of that integer. This is a sample output: Enter an integer: 1247

  Inserts a node with info value x

Complete the code for a function that inserts a node with info      value x before, and a node with info value zafter,each node with      info value y in a linked list with first node pointer p.

  Write two functions to be called by the main program

CSC250 Assignment. Write two functions to be called by the main program. One function is to calculate, in general, a truck's range, that is, the distance the truck can go on one tank of gas (we should probably say fuel. since the bigrig might use ..

  Your city''s parking violation

Your city's Parking Violation Bureau wants you to write a program to compute fines for parking violations.

  Change the inheritance to private inheritance

Take the following C++ code and make the following changes. Change the inheritance to private inheritance. Change the private data member balance to protected. Define get function members of IntAccount class to retrieve name and balance.

  Create a base employee class

Create a base Employee class and a derived StudentEmployee class

  Write a program for a palindrome

Write a program for A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindromes with minimum number of character replacements..

  Write c program which has parent process and child process

Write a C program that has a parent process, a child process, and a grandchild process. The parent process should print its id and the square or 5.

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