I am writing a program that asks for "annual income" is there a way to get the program to round the tax due amount up or down to the next number or should I ask for the "annual income" to be only whole numbers? This is what I have so far.
#include "stdafx.h"
#include <iostream>
#include <iomanip>
using namespace std;
int main( )
{
double income, tax, total;
cout << fixed << setprecision (2);
cout << "Please enter your annual income for 2012: " << endl;
cin >> income;
if( income < 0 )
{
cout << "Invalid Entry Please try Again " << endl;
system ("pause");
return 0;
}