Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

STEP 1: Create the Multifile Project and the Main (Base) Class

Create a new project that consists of the base class BankAccount. 

The BankAccount class should contain, at minimum, the following members. 

It should contain data members to store a bank customer's balance and account number. These should be of different and appropriate data types. 
It should have function members that do the following: 
set the account number; 
return the account number; 
return the account balance; 
deposit money into the account; and 
withdraw money from the account. 
STEP 2: Create the CheckingAccount Class Derived From the BankAccount Class


The class CheckingAccount should contain, at a minimum, the following members. 

It should contain a data member to keep track of the number of withdrawal transactions made on the account. Whenever a withdrawal is made, this number should be incremented. 
Override the base class, withdraw-money function, and add the capability to deduct transaction fees from an account using the following guidelines. 
The checking account is allowed three free transactions. For each successful withdrawal transaction past the three free transactions, there will be a service fee of 50 cents per transaction. The service fee should be deducted from the account balance at the time the transaction is made. 
If there are insufficient funds in the account balance to cover the withdrawal plus the service fee, the withdrawal should be denied. 
The function should return a value to indicate whether the transaction succeeded or failed. Transaction fees should be deducted only from successful transactions, but the transaction count should be incremented in either case. 
STEP 3: Create the SavingsAccount Class Derived From the BankAccount Class


The class SavingsAccount should contain, at a minimum, the following members. 

It should contain a data member to hold the daily interest rate. The daily interest rate can be find outd from a yearly interest rate by dividing the annual rate by 365. 
It should contain a data member to keep track of the number of days since the last transaction or balance inquiry. This should be updated using a random-number generator (reference Lab 1) that will return a value representing the number of days between 0 and 7, inclusive. We will assume that this bank is open every day of the year. 
It should contain a data member to hold the interest earned since the last transaction or balance inquiry. 
It should contain a function member to set the annual interest rate. 
Utilize the base-class functions for both withdrawal and deposit operations for the savings account. 
Override the base-class-balance inquiry function to add calculating and adding interest to the account based on the daily interest rate, the current balance of the account, and the number of days since the last balance inquiry. This should be called only when a balance inquiry is made, not when a deposit or withdrawal transaction or an account number inquiry is made. 
If there are insufficient funds in the account balance to cover a withdrawal, the withdrawal should be denied. The number of days since the last transaction or balance inquiry and the interest calculations should still be made. 
A value should be returned to indicate whether a withdrawal transaction succeeded or failed. 
It should contain a function member to return the interest earned since the last transaction or balance inquiry. 
It should contain a function member to return the number of days since the last transaction or balance inquiry.
STEP 4: Test Program Operation 


All data-input and data-display operations (cin and cout) should be done in the function main() test program. 
The test program should create one checking account and one savings account with initial balances of $100 each using the functions defined in the class definitions. The test program should also assign a unique, five-digit account number to each account and assign an annual interest rate of 3% for the savings account. 
The test program should then display a menu that allows the user to select which option is to be performed on which account, including the following. 
Make a deposit and specify the amount to a selected or an entered account. 
Make a withdrawal and specify the amount to a selected or an entered account. 
Return the balance of a selected or an entered account. 
For deposit transactions, withdrawal transactions, and balance inquiries, the updated balance and any fees charged or interest earned should also be displayed. 
For the savings account, the number of days since last transaction should be displayed. 
Exit the program. 
Each account operation should display the account number and the account type. 
Lab problems


Please answer all the lab problems in the text file that is to be turned into the Dropbox. You are not required to copy the problem text into your document, but all answers should be listed with the problem number they answer.

Were any base-class functions called or overloaded in either of the derived classes? If so, list which class and which function, and describe why they were either called or overloaded. 
Were any derived-class functions not explicitly called by the test program? If so, list which class and function, and describe why this was done. 
Which access attribute was used for each of the classes derived from the base class? Why was this access attribute chosen?

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M994455

Have any Question?


Related Questions in Computer Engineering

Question suppose that you receive an email from someone

Question : Suppose that you receive an email from someone claiming to be Alice, and the email included a digital certificate that contains M = ("Alice", Alice's public key) and [h(M)]_CA, where CA is a certificate author ...

Software quality is a difficult term to define it means

Software quality is a difficult term to define. It means many things to many different people. Consider the following What do you think software quality is composed of? Why is quality so difficult to define? Do different ...

Discuss why a financial services organization would benefit

Discuss why a financial services organization would benefit from using one framework over another (COSO, COBIT,) -- choose a framework or frameworks that in your opinion would be most ideally suited for such an organizat ...

Question hypothetically speaking you are assigned to a

Question: Hypothetically speaking, you are assigned to a committee of three to decide on a dress code for Campbellsville University Staff and Faculty. Only two of the three votes are required to pass this policy. In this ...

Question provide a real-world example or describe a

Question: Provide a real-world example or describe a hypothetical situation in which a legitimate organization used spam in an effective and nonintrusive manner to promote a product or service. Need 300-350 words APA sta ...

Why are standards needed in data communication and

Why are standards needed in data communication and networking? What are the advantages and disadvantages of standards? How do standards fit in with regulations at the federal, manufacturing, and organizational levels? Gi ...

Suppose users share a 3 mbps link also suppose each user

Suppose users share a 3 Mbps link. Also suppose each user requires 150 kbps when transmitting, but each user transmits only 10 percent of the time. When circuit switching is used, how many users can be supported? For the ...

Anz is offering a product that pays out 3000 quarterly from

ANZ is offering a product that pays out $3,000 quarterly from the end of Mar 2021 to the end of Dec 2030 with annual interest rate 6% compounded quarterly. (e.g. payment is made at the end of every March, June, September ...

Systems analysis chapter 6 please answer the four questions

Systems analysis chapter 6: Please answer the four questions at the tasks section Campus Bikes is a popular bicycle shop located near a major university. The business has grown and the owner, Mark Turner, wants to instal ...

Remember all of the following steps when showing that a

Remember all of the following steps when showing that a problem D is NPcomplete: 1. Show that D is in NP by briefly explaining how to quickly verify a solution to it. 2. Choose another problem Q that is known to be NP-ha ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As