Write a program for a bank ATM machine. How and where do i start.
Write a program for a bank ATM machine. How and where do i start.
So, you've gone from not being able to read an int, to wanting to write ATM software? Wow, that was quick learning
Start by reading some C tutorials. There are plenty on the web, use www.google.com to find some, or the search facility on this forum.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Start with displaying one option, like "Check Balance".. make that work and then continue to add options until everything you can think of is done. Go look at a real ATM to get ideas for what you need to do.
As for design, just do a program loop, check for input and do what's needed. I'd keep one variable to track where you're at in the options and I'd use numbers (ie. 1. Check Balance 2. Make Deposit) for options.
__ &n bsp; ___ & nbsp; &nb sp;   ;
/\ \ __ &nbs p; /\_ \   ; & nbsp;
\_\ \/\_\ ____ _ __\//\ \ __ __&n bsp; __
/'_` \/\ \/\_ ,`\ / __`\\ \ \ /\ \/\ \ /'__`\
/\ \_\ \ \ \/_/ /_/\ \_\ \\_\ \_\ \ \_/ |/\ __/
\ \___,_\ \_\/\____\ \____//\____\\ \___/ \ \____\
\/__,_ /\/_/\/____/\/___/ \/____/ \/__/ \/____/
&n bsp; I have a BAD figlet& nbsp;addiction.
GUI or text based
Do it on paper first. Figure out your logic and verify that it makes sense. When you get to writing it using the compiler, just create one part of it and check that the boundary conditions are correct or use a small array and check all of the conditions.
I haven't used a compiler in ages, so please be gentle as I try to reacclimate myself. :P