FLOWCHART
Start
define SIZE 52 int getInput1(void); int getBalance(void); int dispData(void); int countAge(void); void getName(char first_name[10]); void getName2(char last_name[10]); int main(void)
Declare num,ic, first_name[10],last_name[10], soal,i
WELCOME TO Intelligence Tech ptd.ltd
Main Menu:-)
This smart card reader provides you some applications.You can check: A:Your balance for Rapid Card B:Your originated region<read from your MyKAD> C:Your age
In one time
i
Print Enter your identification card number
Read ic
soal!=’n’
Print Do you want to proceed? TRUE
Read soal
soal
TRUE
‘y’
Call functions getName(first_name); getName2(last_name) getBalance() countAge() dispData() num=getInput1()
TRUE ‘n’
Print Bye.Bye FALSE
Stop
FunctiondispData()
Function countAge
Function getName2(last_name)
Function getName(first_name)
Declare I,state[SIZE]
Declare year1=2011,year,age
Read last_name
Read first_name
Read year i=0;i<SIZE;i++ Age=year1-year
Function getBalance
Print state
Read balance
Function getinput(void)
Display age
Display balance
Print you need to topup balance<10 TRUE
Print Thanks for using our service.
Balance>=10
FALSE
num
Johor
1,21,22,23,24
FALSE