RedTurbo
New member
- Joined
- Mar 12, 2014
- Messages
- 1
- Programming Experience
- Beginner
Hello, I am making a C# console application which calculates BTEC grades to UCAS points.
Only thing is, this course has 18 units, so I want the user to enter either 'p', 'm' or 'd' and maybe some other inputs if I choose to later.
So when the user enters something wrong like 'wefttryh239y' then I want the program to output an error message.
I could use a string and check it using if statements, but I feel that isn't very efficient, plus I would like to know just in case I want the user to enter only numbers.
Any idea on how I can do this?
Thanks. :kiwi-fruit:
Only thing is, this course has 18 units, so I want the user to enter either 'p', 'm' or 'd' and maybe some other inputs if I choose to later.
So when the user enters something wrong like 'wefttryh239y' then I want the program to output an error message.
I could use a string and check it using if statements, but I feel that isn't very efficient, plus I would like to know just in case I want the user to enter only numbers.
Any idea on how I can do this?
Thanks. :kiwi-fruit: