Programming Mini Project

Only available on StudyMode
  • Download(s) : 66
  • Published : April 13, 2013
Open Document
Text Preview
SOFTWare design
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

Print
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

TRUE Kedah
2,25,26,27
FALSE

TRUE Melaka
4,30
FALSE TRUE Negeri Sembilan

5,31,59
FALSE TRUE

TRUE Pahang 6,32,33

Penang

7,34,35
FALSE TRUE Perak

8,36,37,38,39
FALSE

TRUE Perlis
9,40
FALSE

FALSE TRUE 10,41,42,43,44

Selangor

TRUE Terengganu
11,45,46
FALSE...
tracking img