Analyze a basic set of requirements for a problem

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

1. 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

II. Prerequisites:

Before starting this programming assignment, participants should be able to:

  • ? 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

III. 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 about? set? ter and ? get? ter 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: EM13706685

Questions Cloud

The initial and final orbit is circular around the earth : Calculate the change in velocity required in changing the position of a satellite in an orbit by 90 degrees. The initial and final orbit is circular around the Earth with a 15000 km radius. Calculate the delta velocity, semi-major axis and period for..
What events occurred that helped business evolve : What events occurred that helped business evolve from feudalism to mercantilism to capitalism? What do you think will be the next innovation? Explain
Use transformation matrices : For a part with matrices (0,0,0),(1,0,0),(0,2,0),(0,0,3), find the final shape after being scaled with factors(1,2,3) in x,y,z axis and then mirrored about z=0 plane. Use transformation matrices.
Change in length due to temperature : Calculate the change in length of the steel and aluminium due to the temperature change alone. Then, assuming that the load P is not applied, and the temperature increases from 60?F to 110?F, calculate the change in length of the steel and aluminium.
Analyze a basic set of requirements for a problem : Analyze a basic set of requirements for a problem - Compose basic C++ language programs
Long log floats with its axis horizontal : It is known that a long log floats with its axis horizontal. A very short log, however, floats with its axis vertical. Determine the maximum length of a cylindrical walnut log 30 cm in diameter that will cause it to float with its axis vertical.
Single-stage ammonia vapor-compression system : In theoretical (ideal) single-stage ammonia vapor-compression system, liquid leaves the condenser at 250 psia and 104 °F. Evaporator pressure is 18.30 psia. Vapor leaves the evaporator at 0°F. The system produces 25 tons of refrigeration.
Calculate the delta velocity required to change inclination : Calculate the delta velocity required to change the inclination of a circular orbit at 32,000 km altitude from a 28.5 degree inclination to an inclination of 45 degrees. Compute the propellant used if the satellite weighs 1200 lbs after the maneuver.
Assume sea level pressure : Moist air at 70 F dry bulb temperatures and 45 percent relative humidity is recalculated from a room and mixed with outdoor air at 97 F dry-bulb temperature and 83 F thermodynamic wet bulb temperatures. Determine the mixture state dry-bulb and wet-bu..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Calculates the sum of the cube roots of two integers.

Wrtie a program that calculates the sum of the cube roots of two integers. The program should use the following functions as well as a main funcion. 1) enter one positive value 2) compute the cube root of one integer 3) report the value of two intege..

  A company hired 10 temporary workers

A company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee.

  This program will simulate the game of hearts

This program will simulate the game of Hearts, which is a four-player trick-taking game using any ordinary deck of playing cards. Each player is dealt thirteen cards. Whoever is dealt the Two of Clubs must lead it to the first trick. Each person p..

  Definition of two queues

Write a code in C language for the definition of two queues, one to hold the process in ready state and one to hold the process in waiting state.

  Asks the user for the name of an input file and translates

Write a C++ program that asks the user for the name of an input file and translates the contents of that input file using ROT13. Your  main  function should be responsible for reading the input file and coordinating calls to a value-returning functio..

  Program to next the loops in either direction

You can write your program to next the loops in either direction, that is, process row-by-row or column-by-column. Explain which way you would choose to process the data.

  Recognition of the problem by the hsbc

What problem did the HSBC face in this case? What people, technology, and the organization factors were responsible for problem? Did HSBC management correctly recognize the problem?

  Read integers values one at a time from standard input

Write a C++ program to do the following. The program will read integers values one at a time from standard input (cin) until you read the value 150.

  What are c library functions gets and atoi

What are 'C' library functions gets and atoi and scanf used for and submit a flowchart or list of processing steps that can be used as a basis for the program.

  The westfield carpet company has asked you to write an

the westfield carpet company has asked you to write an application that calculates the price of carpeting for

  Write a function which takes a c string

Write a function which takes a C string as an input and counts the number of non-alphabetic characters in the C string. Non-alphabetic characters include anything outside the ranges 'a' thru 'z' and 'A' thru 'Z'.

  Write an abstract data type

Write an abstract data type in C++ or Java (find which language you used) for rational numbers (a numerator and a denominator, both in integers).

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