Assignment No. 04 Semester: Spring 2009 CS201: Introduction toProgramming Total
ID: 3612016 • Letter: A
Question
Assignment No. 04
Semester: Spring 2009
CS201: Introduction toProgramming
Total Marks: 20
Due Date:09/06/2009
Instructions
Please read the following instructions carefully beforesubmitting assignment:
It should be clear that your assignment will not get anycredit if:
§ The assignment is submitted after due date.
§ The submitted assignment does not open or file iscorrupt.
§ All types of plagiarism are strictlyprohibited.
Note: You have to upload only.cpp file. Assignment in any other format(extension) will not be accepted. If you will submit codein .doc (Word document) you will get zero marks.
Objective
The objective of this assignment is to provide hands onexperience of using
§ Conceptsof classes in C++
Guidelines
§ Codeshould be properly aligned and well commented.
§ Followc/c++ rules while writing variables names, function names etc
§ Use onlydev-C++ for this assignment.
Assignment
Problem Statement:
Balance to showbalance.
New Balance to get Newbalance from the user.
Adjustment in order todo the adjustment in balance.
Annual Interest Rate isused for the calculation of the interest.
Interest data member toshow the interest amount.
Deposit () to despiteamount in the account.
Withdrawal () towithdraw the amount from the bank.
Balance () functionfor displaying the current balance.
InterestRate () to setthe interest rate. You must get interest
rate from theuser.
AnnualInterest () isused to calculate the interest. The interest
calculated should be deductedfrom the balance and the new balance
after the deduction should beshown to the user.
1: Deposit
2: Withdraw
3: Get Balance
4: Set annual interest rate
5: Calculate interest
Perform appropriate function when users select the option. Ifoption is wrong then display the appropriate message. You shouldalso give option to the user if he/she wants to perform morefunctions.
Deadline
Your assignment must be uploaded/submitted on or before09-06-2009
Assignment No. 04
Semester: Spring 2009
CS201: Introduction toProgramming
Total Marks: 20
Due Date:09/06/2009
Instructions
Please read the following instructions carefully beforesubmitting assignment:
It should be clear that your assignment will not get anycredit if:
§ The assignment is submitted after due date.
§ The submitted assignment does not open or file iscorrupt.
§ All types of plagiarism are strictlyprohibited.
Note: You have to upload only.cpp file. Assignment in any other format(extension) will not be accepted. If you will submit codein .doc (Word document) you will get zero marks.
Objective
The objective of this assignment is to provide hands onexperience of using
§ Conceptsof classes in C++
Guidelines
§ Codeshould be properly aligned and well commented.
§ Followc/c++ rules while writing variables names, function names etc
§ Use onlydev-C++ for this assignment.
Assignment
Problem Statement:
- Create a BankTransaction class.
- Create following static data members:
Balance to showbalance.
New Balance to get Newbalance from the user.
Adjustment in order todo the adjustment in balance.
Annual Interest Rate isused for the calculation of the interest.
Interest data member toshow the interest amount.
- Create constructor which display message whenobject is created.
- Create destructor which display message whenan object is destroyed.
- Bank Transaction class have following public memberfunctions:
Deposit () to despiteamount in the account.
Withdrawal () towithdraw the amount from the bank.
Balance () functionfor displaying the current balance.
InterestRate () to setthe interest rate. You must get interest
rate from theuser.
AnnualInterest () isused to calculate the interest. The interest
calculated should be deductedfrom the balance and the new balance
after the deduction should beshown to the user.
- Now in the main; display a menu.
1: Deposit
2: Withdraw
3: Get Balance
4: Set annual interest rate
5: Calculate interest
Perform appropriate function when users select the option. Ifoption is wrong then display the appropriate message. You shouldalso give option to the user if he/she wants to perform morefunctions.
Deadline
Your assignment must be uploaded/submitted on or before09-06-2009
Explanation / Answer
Assignment No. 04 Semester: Spring 2009 CS201: Introduction toProgramming Total
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.