Programming:
Assignment #10 is an exercise on computing with characters and
enumerated data types.
Specifically, your program (and related functions) needs to do the following:
-
It reads user input character-by-character,
and determines if it is a acceptable (variable/constant/function) name.
-
In case it is not a acceptable name, a reason (or reasons) should be given.
-
For acceptable names,
classify them using the following rule:
- variables are all lower cases, e.g., var1;
- constants are all capitals, e.g., PI;
- functions are mixed upper and lower cases, e.g., GetReal;
- system related names starts with an underscore, e.g., _PCB1;
Non-functional requirement:
You should use enumerated data types(s) whenever appropriate.