#include # include using namespace std; int main() { int const size = 20; char name1[size]; char name2 [size]; char name3 [size]; char name4 [size]; int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o; cout << "please tell me your first name:\n"; cin >> name1; cout << "please tell me your last name:\n"; cin >> name2; cout << "if you would like to give me (the computer) a first and last name\n press 1 if you want to use the calculator press 2\n"; cin >> a; if(a == 1){ cout << "please enter the first name:\n"; cin >> name3; cout << "please enter the last name:\n"; cin >> name4; cout << "you gave me the name" << name3 << " " << name4 << " " << "\nyou will now be taken to the calculator" << " " << name1 << " " << name2 << endl; } cout << "press 3 for addition or 4 for subtraction:\n"; cin >> b; if(b == 3){ cout << "you have choosen addition please put in you first\n and second vales followed by the enter key:\n"; cin >> d; cin >> e; c = d + e; cout << d << "+" << e << "=" << c; } if(b == 4) { cout << "please put in you first and second\n value followed by the enter key:\n"; cin >> g; cin >> h; f = g - h; cout << g << "-" << h << "=" << f; } return 0; if(a == 2){ cout << "please press 5 for addition or 6 for\n subtraction followed by the enter key:\n"; cin >> i; }if(i == 5) { cout << "please put in your first value and your\n second value followed by the enter key:\n"; cin >> j; cin >> k; l = j + k; cout << j << "+" << k << "=" << i << endl; }if (i == 6){ cout << "please enter your first and second valuse followed by the enter key:\n"; cin >> o; cin >> n; m = o - n; cout << o << "-" << n << "=" << m << endl; } return 0; }