I dont want to be spoonfed code, but I just want to know the way I should go about tackling these two assignments Ive been given.
TASK1:TAKE YEAR AS INPUT FROM USER AND TELL WETHER IT IS A LEAP YEAR OR NOT
TASK2:TAKE CHAR INPUT FROM USER AND SAY WETHER IT IS SMALL ALPHABET/LARGE ALPHABET/SPECIAL CHARACTER
Just a post with how I should tackle them would be awesome. I understand the basic functions, and we have covered the while stuff as well, along with if, else if, loops and everything. Thankyou in advance
For the second task, do you know if you're able to use <cctype>? It has lots of useful functions for working with characters, like isnum and isalpha. http://www.cplusplus.com/reference/cctype/
If you aren't allowed to use <cctype>, you can make your own function by thinking about how characters are used. Each character is stored as its decimal ascii value. Looking at an ascii table: http://www.asciitable.com/index/asciifull.gif you can tell that a letter is uppercase if its ascii value lies within 65 and 90. You should be able to use the same idea for lowercase/special characters as well.