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

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)

 

Looking for a Similar Assignment? Let us take care of your classwork while you enjoy your free time! All papers are written from scratch and are 100% Original. Try us today!