Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Assignment No. 04 Semester: Spring 2009 CS201: Introduction toProgramming Total

ID: 3612025 • Letter: A

Question

Assignment No. 04
Semester: Spring 2009

CS201: Introduction toProgramming

Total Marks: 20

DueDate:09/06/2009

Instructions

Please read the following instructions carefullybefore submitting assignment:

It should be clear that your assignment will notget any credit if:

§        The assignment is submitted after duedate.

§        The submitted assignment does not open or file iscorrupt.

§        All types of plagiarism are strictlyprohibited.

Note: You have to uploadonly .cpp file. Assignment in any other format(extension) will not be accepted. If you will submit codein .doc (Word document) you will get zeromarks.

Objective

The objective of this assignment is to provide hands onexperience of using

§        Concepts of classes in C++

Guidelines

§        Code should be properly aligned and wellcommented.

§        Follow c/c++ rules while writing variables names, functionnames etc

§        Use only dev-C++ for this assignment.

Assignment

Problem Statement:

    Balance to show balance.

   NewBalance to get New balance from theuser.

   Adjustmentin order to do the adjustment in balance.

   AnnualInterest Rate is used for the calculation of theinterest.

   Interestdata member to show the interest amount.

    Deposit() to despite amount in the account.

     Withdrawal() to withdraw the amount from the bank.

    Balance() function for displaying the currentbalance.

     InterestRate() to set the interest rate. You must getinterest

        rate from theuser.                                        

    AnnualInterest () isused to calculate the interest. The interest

      calculatedshould be deducted from the balance and the new balance

      after thededuction should be shown 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.If option 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 orbefore 09-06-2009

Assignment No. 04
Semester: Spring 2009

CS201: Introduction toProgramming

Total Marks: 20

DueDate:09/06/2009

Instructions

Please read the following instructions carefullybefore submitting assignment:

It should be clear that your assignment will notget any credit if:

§        The assignment is submitted after duedate.

§        The submitted assignment does not open or file iscorrupt.

§        All types of plagiarism are strictlyprohibited.

Note: You have to uploadonly .cpp file. Assignment in any other format(extension) will not be accepted. If you will submit codein .doc (Word document) you will get zeromarks.

Objective

The objective of this assignment is to provide hands onexperience of using

§        Concepts of classes in C++

Guidelines

§        Code should be properly aligned and wellcommented.

§        Follow c/c++ rules while writing variables names, functionnames etc

§        Use only dev-C++ for this assignment.

Assignment

Problem Statement:

  1. Create a BankTransactionclass.
  2. Create following static data members:

    Balance to show balance.

   NewBalance to get New balance from theuser.

   Adjustmentin order to do the adjustment in balance.

   AnnualInterest Rate is used for the calculation of theinterest.

   Interestdata member to show the interest amount.

  1. Create constructor which display messagewhen object is created.
  2. Create destructor which display messagewhen an object is destroyed.
  1. Bank Transaction class have following public memberfunctions:    

    Deposit() to despite amount in the account.

     Withdrawal() to withdraw the amount from the bank.

    Balance() function for displaying the currentbalance.

     InterestRate() to set the interest rate. You must getinterest

        rate from theuser.                                        

    AnnualInterest () isused to calculate the interest. The interest

      calculatedshould be deducted from the balance and the new balance

      after thededuction should be shown to the user.

  1. 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.If option 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 orbefore 09-06-2009

Explanation / Answer

x.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote