here's my program, hope somebody will see where I went wrong.
#include <iostream>
using namespace std;
int main()
{
int response;
int bonus = 0;
int salary = 0;
int newsalary = 0;
cout << " What is your salary: ";
cin >> salary ;
cout << "Are you a teacher y/n: ";
cin >> response ;
if (response = 'y'||'Y')
{
newsalary = salary * 1.07;
cout << "New salary in dollars :"<< newsalary << endl;
cout << "Bonus = 200 dollars" << endl;
}
else if (response = 'n'||'N')
{
newsalary = salary *1.04;
cout << "New salary in dollars :"<< newsalary << endl;
cout << "Bonus = 500 dollars" << endl;
}
//system("pause");
return 0;
}
Thank you very much for your help. I really appreciate it.