Professional Documents
Culture Documents
CS Project
CS Project
CS Project
INPUT: countryname
INPUT: H,M
IF counrtyname ‘’JAPAN’’
H H-3
M M+0
H H+5
M M+30
H H+11
M M+0
ENDIF
Input:
CN
Input:
H,M
Yes H=H-3
CN=JP M=M+0
No
Yes
H=H+5
CN=USA
M=M+30
No
Yes
H=H+11
CN=NZ M=M+0
OUTPUT:
End
‘’Error’’
Explanation:
It’s a program which inputs the country name and calculates it time relative the time in KSA.
I inputted the country name and the algorithm gave me the time.