Computer Science-QA399

Computer Science-QA399 Online Services

 

1. BankAccount.cpp file code
 
#include “BankAccount.h”
#include
#include
using namespace std;
BankAccount::BankAccount(string pName, double pCurrentBalance)
{
name = pName;
balance = pCurrentBalance;
}
BankAccount::BankAccount()
{
balance = 0;
name = “No Name”;
}
void BankAccount::deposit(double amount)
{
balance += amount;
}
void BankAccount::withdraw(double amount)
{
if (balance >= amount)
{
balance -= amount;
}
else
{
std::cout << "ERROR: Cannot withdraw " << amount << " since current balance is " << balance << std::endl; } } int BankAccount::getBalance() { return balance; } string BankAccount::getName() { return name; } 2. Bankaccount.h file #ifndef BACKACCOUNT_DEFINED #define BACKACCOUNT_DEFINED 1 #include
class BankAccount
{
 

You can read more about our case study assignment help services here.
 

How it Works

How It works ?

Step 1:- Click on Submit your Assignment here or shown in left side corner of every page and fill the quotation form with all the details. In the comment section, please mention Case Id mentioned in end of every Q&A Page. You can also send us your details through our email id support@assignmentconsultancy.com with Case Id in the email body. Case Id is essential to locate your questions so please mentioned that in your email or submit your quotes form comment section.

Step 2:- While filling submit your quotes form please fill all details like deadline date, expected budget, topic , your comments in addition to Case Id . The date is asked to provide deadline.

Step 3:- Once we received your assignments through submit your quotes form or email, we will review the Questions and notify our price through our email id. Kindly ensure that our email id assignmentconsultancy.help@gmail.com and support@assignmentconcultancy.com must not go into your spam folders. We request you to provide your expected budget as it will help us in negotiating with our experts.

Step 4:- Once you agreed with our price, kindly pay by clicking on Pay Now and please ensure that while entering your credit card details for making payment, it must be done correctly and address should be your credit card billing address. You can also request for invoice to our live chat representatives.

Step 5:- Once we received the payment we will notify through our email and will deliver the Q&A solution through mail as per agreed upon deadline.

Step 6:-You can also call us in our phone no. as given in the top of the home page or chat with our customer service representatives by clicking on chat now given in the bottom right corner.

Case Approach

Scientific Methodology

We use best scientific approach to solve case study as recommended and designed by best professors and experts in the World. The approach followed by our experts are given below:

Defining Problem

The first step in solving any case study analysis is to define its problem carefully. In order to do this step, our experts read the case two three times so as to define problem carefully and accurately. This step acts as a base and help in building the structure in next steps.

Structure Definition

The second step is to define structure to solve the case. Different cases has different requirements and so as the structure. Our experts understand this and follow student;s university guidelines to come out with best structure so that student will receive best mark for the same.

Research and Analysis

This is the most important step which actually defines the strength of any case analysis. In order to provide best case analysis, our experts not only refer case materials but also outside materials if required to come out with best analysis for the case.

Conclusion & Recommendations

A weak conclusion or recommendations spoil the entire case analysis. Our expert know this and always provide good chunks of volume for this part so that instructors will see the effort put by students in arriving at solution so as to provide best mark.

Related Services

 
public
 
//constructors
BankAccount(std::string, double);
// post: Construct call with two arguements:
// BankAccount(“Tom DeJong”, 100.00)
BankAccount();
 
// post: Construct call with no arguements
// default name = “NoName”, balance = 0
//public methods
void deposit(double amount);
// post: Credit amount from balance
void withdraw(double amount);
// pre: Check if withdraw <= balance // post: Debit amount from balance // observer methods int getBalance();   // post: return balance std::string getName(); // post: return name //private variables private: std::string name; //stores name double balance; //stores balance };   #endif Files you will be submitting: 8B_BankTell.cpp with output Notes: Remember to add your information to output and copy and paste output to the bottom of the main program Points: 10   General Directions:
 
You will be writing 8B_BankTeller.cpp from scratch. Make sure you place all 3 files in the project folder on your hard drive.
 
Download (replace if necessary) BankAccount.h and BankAccount.cpp files that are attached above and place them in your project folder.
 
In your assignment file, include, be sure to: #include “BankAccount.h”, , and
Create some local variables store name and starting balance and pass thosevalues to a new object of BankAccount.
Use the BankAccount class to store and retrieve name and balance.
 
Create a menu system that will have a post-condition do-while loop that will loop until choice (choice is a char) = “Q”. Use toupper on choice so it will accept upper or lower case characters.
 
W)ithdraw, D)eposit, or Q)uit
 
Use a switch statement with cases ‘W’, ‘D’, or ‘Q’ to withdraw, deposit, or quit. Include a default that will return a error (option not available).
Note that BankAccount class will return an error that you can use if you try to withdraw too much.
On exiting your program, report the balance.
Please mimic the following output for your output.
Output
 
/*
Student Name, CIS127, Assignment 8.1
Enter customer name: Thomas DeJong
Enter initial balance: 0
W)ithdraw, D)eposit, or Q)uit: d
Enter deposit amount: 250
W)ithdraw, D)eposit, or Q)uit: w
Enter withdrawal amount: 300
ERROR: Cannot withdraw 300 since current balance is 250
W)ithdraw, D)eposit, or Q)uit: w
Enter withdrawal amount: 200
W)ithdraw, D)eposit, or Q)uit: q
Thank you for your business Suleiman Ahmed
Ending balance: 50
 
Product code: Computer Science-QA399

 
Looking for best Computer Science-QA399 online ,please click here
 

Summary