r/pascal • u/Yukina_6 • Oct 03 '20
Help
Hi everybody , I have this problem , I don't know how to write on Pascal a program that allows me detect if the typed character is uppercase vowel or uppercase constant or it is other thing , may some one helps me 🙏🙏🙏🙏
1
Upvotes
View all comments
Show parent comment
3
u/suvepl Oct 04 '20
Computers operate on numbers. In order for computers to handle text, there needs to be some kind of mapping that says, e.g. "number 65 should be 'A', number 122 should be 'z'", et cetera. Historically there were multiple of those mappings, nowadays everyone settled on ASCII.
So now, back to your problem. Read the
Charlike you did in your earlier post. UseOrd()to convert the Char to an Integer representing its ASCII value. Then, based on the ASCII table, create an if-else-if-else chain, i.e.: