Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Some lecturers at Grime struggle using computers, and often don’t realise if the ‘Caps Lock’ key is pressed or not.
- UoW would like all future input to their new Grade Centre to be indifferent to whether an input is in CAPITALS or not.
- d) Write a function using the following prototype as a guide:
- int CaseCheck(char a, char b)
- • Function must be called ‘CaseCheck’
- • Function must accept two character parameters
- • Function will return 1 if both characters are alphabet characters, and are the same ignoring case.
- • Function will return 0 in all other conditions.
- • Your function will need to handle any valid ASCII character being entered.
- • In your main function, you should modify your earlier code that asks the user to enter ‘y’ or ‘n’ to use this function (and implicitly also accept ‘Y’ and ‘N’ as valid responses).
Advertisement
Add Comment
Please, Sign In to add comment