I need help with an ATM program!!! - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

I need help with an ATM program!!!

stooboystooboy Posts: 7Member
Help!!!!
«1

Comments

  • GaashiusGaashius Posts: 349Member
    : Help!!!!
    :
    Would you be so kind as to tell us detailed information about what do you need, thanks

    ****************
    Any questions? Just ask!

    :-) [b][blue]GAASHIUS[/blue][/b] :-)


  • stooboystooboy Posts: 7Member
    I need a template if poss
  • GaashiusGaashius Posts: 349Member
    Sorry, I would really like to help you, but my english is terrible(as you can see), and that ATM is a thing that I do not understand.

    ****************
    Any questions? Just ask!

    :-) [b][blue]GAASHIUS[/blue][/b] :-)


  • Phat NatPhat Nat Posts: 757Member
    : Help!!!!
    :

    You need to be more specific. Obviously this is a school project, so you won't get much help if all you're willing to put in is "Help!!!!"

    Tell what you need the program to do, what you have or where you are having problems. I'll give a general answer for a general question.

    1) Create a loop
    2) Ask for a choice
    3) Process choice (call procedure) or "Finish Transaction"
    4) Goto #1 until "Finish Transaction" is called

    Good Luck,

    Phat Nat

  • stooboystooboy Posts: 7Member
    : : Help!!!!
    : :
    :
    : You need to be more specific. Obviously this is a school project, so you won't get much help if all you're willing to put in is "Help!!!!"
    :
    : Tell what you need the program to do, what you have or where you are having problems. I'll give a general answer for a general question.
    :
    : 1) Create a loop
    : 2) Ask for a choice
    : 3) Process choice (call procedure) or "Finish Transaction"
    : 4) Goto #1 until "Finish Transaction" is called
    :
    : Good Luck,
    :
    : Phat Nat
    :
    :

  • stooboystooboy Posts: 7Member
    Is there a way to use, say a floppy, as an actual bank card substitute. So that when you insert a floppy disk it acts as a bank card.

    Stoo
  • zibadianzibadian Posts: 6,349Member
    : Is there a way to use, say a floppy, as an actual bank card substitute. So that when you insert a floppy disk it acts as a bank card.
    :
    : Stoo
    :
    Yes. the easiest way to do this is to place a "pin code"-file on the floppy, and let the user press a key after he inserted the floppy. Sadly there is no way to detect if a floppy is entered, and then run a certain procedure.
  • GaashiusGaashius Posts: 349Member
    : : Is there a way to use, say a floppy, as an actual bank card substitute. So that when you insert a floppy disk it acts as a bank card.
    : :
    : : Stoo
    : :
    : Yes. the easiest way to do this is to place a "pin code"-file on the floppy, and let the user press a key after he inserted the floppy. Sadly there is no way to detect if a floppy is entered, and then run a certain procedure.
    :
    Stooboy can detect floppy disks which act like a bank card. He needs to check if the PIN-file exists, if exists there is a valid floppy in the drive.

    ****************
    Any questions? Just ask!

    :-) [b][blue]GAASHIUS[/blue][/b] :-)


  • zibadianzibadian Posts: 6,349Member
    : : : Is there a way to use, say a floppy, as an actual bank card substitute. So that when you insert a floppy disk it acts as a bank card.
    : : :
    : : : Stoo
    : : :
    : : Yes. the easiest way to do this is to place a "pin code"-file on the floppy, and let the user press a key after he inserted the floppy. Sadly there is no way to detect if a floppy is entered, and then run a certain procedure.
    : :
    : Stooboy can detect floppy disks which act like a bank card. He needs to check if the PIN-file exists, if exists there is a valid floppy in the drive.
    :
    : ****************
    : Any questions? Just ask!
    :
    : :-) [b][blue]GAASHIUS[/blue][/b] :-)
    :
    :
    :
    You can use FileExists() to check if the file exists. Or if FileExists() isn't recognized by your compiler you can use the IOResult method, which is slightly more coding. The TP help files include a good example of the IOResult code.
  • GaashiusGaashius Posts: 349Member
    : : : : Is there a way to use, say a floppy, as an actual bank card substitute. So that when you insert a floppy disk it acts as a bank card.
    : : : :
    : : : : Stoo
    : : : :
    : : : Yes. the easiest way to do this is to place a "pin code"-file on the floppy, and let the user press a key after he inserted the floppy. Sadly there is no way to detect if a floppy is entered, and then run a certain procedure.
    : : :
    : : Stooboy can detect floppy disks which act like a bank card. He needs to check if the PIN-file exists, if exists there is a valid floppy in the drive.
    : :
    : : ****************
    : : Any questions? Just ask!
    : :
    : : :-) [b][blue]GAASHIUS[/blue][/b] :-)
    : :
    : :
    : :
    : You can use FileExists() to check if the file exists. Or if FileExists() isn't recognized by your compiler you can use the IOResult method, which is slightly more coding. The TP help files include a good example of the IOResult code.
    :
    Yes, pascal is not delphi :-) there isn't any FileExists funcs. Here's one:
    [code]
    function fileexists(f:string):boolean;
    var
    stream:file;
    begin
    if f='' then begin
    exist := false;
    exit;
    end;
    assign(stream,f);
    {$i- }
    reset(stream);
    close(stream);
    {$i+ }
    fileexists:=(ioresult=0);
    end;
    [/code]

    ****************
    Any questions? Just ask!

    :-) [b][blue]GAASHIUS[/blue][/b] :-)


«1
Sign In or Register to comment.