Resemble the example program

Assignment Help Basic Computer Science
Reference no: EM131846325

Need help with this

Instructions:

Design and implement a class called bankAccountType according to the specified UML diagram.

bankAccountType

customerName: string

accountBalance: double

bankAccountType (string, double) deposit(double)

withdraw(double)

setName(string)

getName() const: string

getBalance() const: double

According to this UML diagram, the class bankAccountType will have two PRIVATE member variables: a string called customerName and a double called accountBalance.

The class will have a parameterized constructor and the following PUBLIC member functions:

  • bankAccountType constructor that will set customerName and accountBalance to the values
  • passed to the object at instantiation.
  • a void function called deposit that receives a double and adds that received value to the value of
  • accountBalance.
  • a void function called withdraw that receives a double and subtracts it from the value of
  • accountBalance. This function should not process a transaction that would result in a negative
  • account balance. Instead, this function should output a warning stating insufficient funds.
  • A void function called setName that receives a string and sets customerName.
  • A value returning function called getName that returns the customerName. This function should
  • be prevented from modifying the member variables.
  • A value returning function called getBalance that returns the accountBalance. This function
  • should be prevented from modifying the member variables.

Last, wrote test client to instantiate a bankAccountType object and test its public functions. Include the class definition, class implementation and test client in a single .cpp file. These requirements closely resemble the example program, so use the slides as a guide. Submit on Blackboard in the usual format

Reference no: EM131846325

Questions Cloud

Discuss the brainstorming session about the project : Have an initial brainstorming session about the project. Based on our preliminary discussions about the project in class, discuss your thoughts and ideas.
Discuss the programming syntax used in adding : Discuss the programming syntax used in adding decision making logic in a Visual Basic application. Review other learners' posts and provide recommendations
Developing a project plan for the access control system : Summarize the experience when developing a project plan for the access control system.
Identify a plc company that uses strategic management : Identify a PLC company that uses strategic management - this company may be prosperous, booming, in decline, or in economic difficulties.
Resemble the example program : These requirements closely resemble the example program, so use the slides as a guide. Submit on Blackboard in the usual format
What is the profile of the hacker : What type(s) of cybercrime was/were involved in this article? Does the identified offender fit the characteristics for this type of cybercrime?
How does that compare with the rest of the state : How does that compare with the rest of the state and Is there an area near where you live that are "Low income and low access" according to the USDA map
Discuss some of the performance issues : Discuss some of the performance issues when querying three or four tables at a time
What is the distance of shortest path for the traveler : CS1081 Homework Assignment. A traveler is departing from point A toward point B with a constraint: What is the distance of shortest path for the traveler

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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