C++ Assignment 2

profileazazan
doc2.docx

Project 3:

 The idea of designing and developing an adder of integers is due to the fact thatinteger numbers have always limits on their minimum and maximum values. To overcome thisshortcoming, integers are treated as sequences of

numeric characters

.We would like to implement an adder of two integers. This adder should take intoconsideration that the two input integer numbers are entered in the form of finite sequences ofnumeric characters, namely ‘0’, …, ‘9’.Write a

C/C++

 program that accepts two integers (each of them could be positive, negative, orzero) as input and generates as output the result of their addition. Both integers are entered by theuser and saved into two string variables, named S_ENT1 and S_ENT2, respectively. Similarly,the result of their addition should be saved into a third string variable, S_ENT3.An

integer 

 is a sequence of characters including

only digits

, namely ‘0’, …, ‘9’. Thus, bothintegers should be checked so that no other character could be entered.The implementation of this adder should be as structured as possible