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

computer science

Description

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)


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.