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
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.