Anyone who can help me please do I am totaly lost. this is the homework:
You will implement a set of functions that will analyze and/or manipulate character data.
You are provided with a header file called charRoutines.h
that contains the declaratins (prototypes) for the
functions that you are to implement. You are to implement
these functions in a .cpp file called charRoutines.cpp:
#ifndef charRoutings_H
#define charRoutings_H
extern bool isUppercase( char c );
extern bool isLowercase( char c );
extern bool isAlphabetic( char c );
extern bool isNumeric( char c );
extern bool isAlphanumeric( char c );
extern bool isVowel( char c );
extern bool isSpace( char c );
extern char toUpper( char c );
extern char toLower( char c );
extern int toNumber( char c );
#endif
*** NOTE: you are not to modify the contents of the
charRoutines.h file for this assignment.
The following is an explanation of what each of the
routines should do:
bool isUppercase( char c )
Returns true if the character passed in is any uppercase
letter. If it is any other character, false is returned.
bool isLowercase( char c )
Returns true if the character passed in is any lowercase
letter. If it is any other character, false is returned.
bool isAlphabetic( char c )
Returns true if the character passed in is any uppercase
letter or any lowercase letter. If it is any other
character, false is returned.
bool isNumeric( char c )
Returns true if the character passed in is any
numeric digit. If it is any other character,
false is returned.
bool isAlphanumeric( char c )
Returns true if the character passed in is any uppercase
letter, any lowercase letter, or any numeric digit. If
it is any other character, false is returned.
bool isVowel( char c )
Returns true if the character passed in an uppercase
or lowercase vowel (a, e, i, o, u). If it is any other
character, false is returned.
bool isSpace( char c )
Returns true if the character passed in a space. If it is
any other character, false is returned.
char toUpper( char c )
If the character passed in is a lowercase letter, then
this function returns the uppercase version of that
letter. Otherwise, the parameter passed in is returned.
char toLower( char c )
If the character passed in is an uppercase letter, then
this function returns the lowercase version of that
letter. Otherwise, the parameter passed in is returned.
int toNumber( char c )
If the character passed in is a numeric digit, then the
integer value (not the ASCII code) of that digit is returned.
If the character is not a digit, -1 should be returned.
Restrictions
------------
- You are not allowed to include header files other
than charRoutines.h in your charRouters.cpp file.
Therefore, you can not use any ANSI C/C++ routines
to assist in your implementation of the functions.
- There are to be no hard-coded numbers in this
assignment. Use character literals when ASCII codes
are needed.
- The charRoutines.cpp file should only contain the
implementation of the above routines. Do not put
a main() routine in your charRoutines.cpp.
things needed in this homework:
- Proper use of multiple source code files.
- Proper use of character literals. No hard-coded
numbers for characters.
the goal of the HW:
- how to work with character literals without having to
put specific hard-coded ASCII values in your code.
- how to work with multiple .cpp source code files.
- how to think about testing what you implement.
Please help! I am totaly lost.
Thank you