Write a program for a bank ATM machine. How and where do i start.
Printable View
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.
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.
GUI or text based :D
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.