This work is based on operator overloading, you need to build a string calculator, the calculator can do add and minus functions for string variables (there will be only characters and space for the string). The calculator should recognize capital letters, small letters and space, if adding two correspond character is above “z”, the result should minus ‘z’ before combine to the string, for example z+a=a, a+c= J. In the same way, if minus two correspond character is lower than “A”, the result should add ‘A’ before combine to the string, for example C-A=C, e-d= B. A character add a space will be the character itself. (if the result you get from calculation is not in the range of ASCII printable characters, you should add A or minus z till the result is between the range of ASCII printable characters)
Get Free Quote!
293 Experts Online