Sunday, June 12, 2011

C++ : Convert Values ​​Letters Figures Become

Download

Example:
Value Letter Value figures

0-12 E
21-40 D
41-60 C
61-80 B
81-100 A

I. ALGORITHM
{Convert a numeric value into the value of letters}

DECLARATION
value: integer
nilai_huruf: char
DESCRIPTION
read (value)
if (value> 0) and (value <= 20) then nilai_huruf <- 'E'else if (value> 20) and (value <= 40) then nilai_huruf <- 'D'else if (value> 40) and (value <= 60) then nilai_huruf <- 'C'else if (value> 60) and (value <= 80) then nilai_huruf <- 'B'else nilai_huruf <- 'A'end ifwrite (nilai_huruf)Download

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More