Bank Account Program

  • Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

Psycho_Coder

Active Poster
Retired Staff
Active Member
Apr 12, 2014
642
481
133
UK
I created a simple bank account program before. Nothing much, Take it edit it, But leave credit for me. :p

Here is the accounts.h file.
Code:
class cust_acc
{
      private:
              float bal;
              int acc_num;
      public:  
          void setup();
          void lodge(flost);
          void withdraw(float);
          void balance();
         
          }
Here is the accfuns file.
Code:
/*
*This was created By RealTimeModding
* program file 'accfunc.cpp'
* define 'cust_acc' member functions
*/

#include <iostream>
using namespace std;

#include 'accounts.h'

//
//custom_account member functions
//
void cust_acc::setup()
{
cout << "enter number of account to be opened: ";
cin >> acc_num;
cout << "enter initial balance: ";
cin >> bal;
cout << "customer account" << acc_num
                << "created with balance" << bal << endl;
                }
                void cust_acc::lodge(float lodgement}
                {
                     bal += lodgement;
                     cout << "lodgement of " << lodgement << "accepted " << endl;
                     }
                void cust_acc::withdraw(float with)
                {
                     if(bal > with)
                     {
                            bal = with;
                            cout << "withdrawal of" << with
                                  << "granted" << endl;
                                  return;
                                  }
                            cout << "insufficent balance for withdrawal of"<< with << endl;
                            cout << "withdrawal of" << bal << "granted" << endl;
                            bal     = (float)0;
                            }
                     void_cus_acc:balance()
                     {
                        cout << "balance of account is" << bal << endl;
                       
                                           }

Here is the accounts file.

Code:
/*
*This was created by ReaaTimeModding
* program file 'accounts.cpp'
*drievs the 'cust_acc' class
*/

#include <iostream>
using namespace std;

#include "accounts.h"

int main()
{
    cust_acc a1;
    a1.setup();
    a1.lodge(250.00);
    a1.balance();
    a1.withdraw(500.00);
    a1.balance();
}
 
  • Like
Reactions: TheMystery

JamesBboy

Active Poster
Active Member
Dec 27, 2013
199
57
88
Is it a good thing that I can still understand coding? Lol xD Its been like 1-2 years since I messed with code haha.
 
  • Like
Reactions: Psycho_Coder
General chit-chat
Help Users
  • @ lurch6661:
    whats that
  • @ QM|T_JinX:
    go in game then press options on controler go all the way to the right sec to last icon
  • @ lurch6661:
    yea i tried that might have to set up the ps4 maybe this pc not fast enought for dmz
  • @ lurch6661:
    it keeps saying shader overload
  • @ QM|T_JinX:
    ok yea then i have no idea
  • @ lurch6661:
    weird cause it plays gtav fine and warzone
  • @ QM|T_JinX:
    what do it say when you stand on dmz
  • @ QM|T_JinX:
    on ps5 and 4 it will say if you have it installed or not
  • @ lurch6661:
    yea it plays just frames freeze
  • @ QM|T_JinX:
    ok yea maybe it wont play then
  • @ lurch6661:
    i will have to set up the ps4 then
  • @ QM|T_JinX:
    if you wanna play dmz yea sure
  • @ lurch6661:
    probably will have to download it
  • @ lurch6661:
    got it downloading
  • Chat Bot:
    Christo has joined the room.
  • Chat Bot:
  • Chat Bot:
  • Chat Bot:
  • @ QM|T_JinX:
    i put the stage2.bin in spoiler now i wasnt able to find it in the github so i posted it for the ones like me who cant find it lol
  • Chat Bot:
    Christo has joined the room.
  • @ QM|T_JinX:
    damn this jb is alot of work and set up haha but i got it running and ready to go lol
  • Chat Bot:
    X-Rudboy-X is our newest member. Welcome!
  • Chat Bot:
    smilt is our newest member. Welcome!
  • Chat Bot:
    Christo has joined the room.
    Chat Bot: Christo has joined the room.