I know I did something wrong because I'm unable to enter values for the three questions to do the calculation. This is what I have so far. What am I doing wrong?
Put the code you need help with here.
#include <iostream>
using namespace std;
int main()
{
int payAmount, payPeriods, taxBracket, grossannualpay, netannualpay, taxAmount;
cout << "Enter employee's pay amount per period: " << endl;
cin >> payAmount;
cout << "Enter number of pay periods: " << endl;
cin >> payPeriods;
cout << "Enter employee's tax bracket (in fraction, i.e. 0.25 for 25%): " << endl;
cin >> taxBracket;