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

  Creates a macro to calculate the area

Build a program that creates a macro to calculate the area of a circle using the formula area = pie x radius x radius. In the same program, prompt the user to enter a circle's radius. Use the macro to calculate the circle's area and display the re..

  Create a c++ function named pathexists

Write a C++ function named pathExists that determines whether or not a there's a path from start to finish in a 10x10 maze. A 2-dimensional 10x10 character array of Xs and dots that represents the maze. Each 'X' represents a wall, and each '.' rep..

  C program to calculate power loss in transmission line

Write program in C to calculate the power loss in transmission line with resistance of 0.05 ohms/mile. Calculate power loss if 500 kW of power is transmitted from power generation station

  Multiply a set of complex numbers

Write a C program to multiply a set of complex numbers stored in an array (that has been dynamically allocated). Specifically, first prompt the user to enter how many complex numbers need to be multiplied, dynamically create an array to store the ..

  Write a program that calculates net pay

Write a program that calculates Net Pay. It should do this by calling a function called CalNetPay that calculates and returns Net Pay when given the hours worked and the hourly pay rate. The main function should pass the hours worked and pay rate ..

  Program which asks the user for due date of next assignment

Write a program which asks the user for due date of the next assignment (hours, minutes). Then print number of minutes between the current time and the due date in format.

  Person class that includes fields for last name

Create a Person class that includes fields for last name, first name, and zip code. Include a default constructor that initializes last name, first name, and zip code to "X" if no arguments are supplied. Also include a display function. Write a ma..

  Show the deatils of an emplyoee - c programming

Show the deatils of an emplyoee in a neat format.

  Function declare that it can throw an ioexception

Every C++ function that performs file I/O will thus need to either declare that it can throw an IOException, or contain a try-catch-finally block to deal with it. Response?

  Create a job class that holds a job id

Create a Job class that holds a Job ID number and the cost of the Job. Include insertion and extraction operators. Create a JobException class that holds a Job and an error message

  Dynamic character arrays

Dynamic character arrays str and add contain strings. Write a function append that uses str and add as arguments and appends add to the end of str. Write a main program that illustrates the use of function append to concatenate five strings.

  Calculate the celsius equivalent of a fahrenheit temperature

Construct a program that allows you to calculate the Celsius equivalent of a Fahrenheit temperature.

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