Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

YukiRaven

Members
  • Content count

    4189
  • Joined

  • Last visited

About YukiRaven

  • Rank
    Will DDR for food

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Single Status Update

See all updates by YukiRaven

  1. This is how sad my C++ class is. Here's hour 6th assignment:

    In this lab exercise, you will write a program which will let the user
    to manage her/his bank account. Initially the user has $10000.00 in her/his
    account. Then the user will make some transactions (0 or more
    transactions)
    in her/his account.

    You will write three functions whose prototype has been given. The three
    functions are main, withdrawal and deposit.

    From inside main, you will repeatedly ask the user if she/he wants to make
    transactions (say, ask the user to enter 0 to exit the program or any +ve
    integer to make a transaction). Then ask the user if she/he wants to
    deposit
    or withdraw money. Call deposit or withdrawal functions accordingly.

    In function deposit, you will receive the total money the user has in her/his
    account and the amount to be deposited. Make appropriate changes to total money
    in user's account here.

    In function withdrawal, you will receive the total money the user has in her/his
    account and the amount to be withdrawn. Make appropriate changes to total money
    in user's account here.

    Do error checking, -ve amount can't be withdrawn or deposited.

    PLEASE READ THE COMMENTS WRITTEN ABOVE withdrawal AND deposit FUNCTIONS
    BEFORE YOU WRITE THE PROGRAM.


    To top it off, in the program skeleton he made for us (lol!), he forced pass-by-reference variables into it (literally forced). It kind of made the program odd looking.

    Given how easy it was, I modified it a little. It now has a functioning menu. I should have added a class, file i/o, account numbers, transaction histories, and other fun stuff. But, given that this lab (which is supposed to take a week at least to do) took me 15 minutes, I think I'll just turn it in.

    1. Julian

      Julian

      Memories...

    2. Bloodshedder

      Bloodshedder

      OGM YUO AER TEH SMRAT

    3. YukiRaven

      YukiRaven

      Bloodshedder said:

      OGM YUO AER TEH SMRAT

      damn straight

×