Mag flowchart ka muna idol, para alam mo yung flow ng gagawin mong program.nakalimutan ko po kung pano kapag naka 3 attempts na magcloclose dapat yung program
while (count != 0) {
// insert enter pin here
if () {
// insert ATM functions here
} else {
// insert remaining attempts here, (count - 1)
}
count--;
}
pano po gawin yun? sorry po talaga
int option; // this will hold the input value for the options
while (count == 0) {
// enter pin number here
if (pinNumber == pass) {
while (true) {
// insert ATM menu here
// here if the user enter 0 this will exit the program.
if (option == 0) {
return 0;
// if the user enter 1 this will do some ATM functions | see example below
} else if (option == 1) {
} else if (option == 2) {
// more ATM functions
}
// and so on ...
}
}
}
