#include // This is needed to manipulate the IO. #include using namespace std; int main() { // Tip of the bill. double tip=0; // Total amount of the bill. double total=0; // Sets the precision on numbers to be 2 decimal places. cout << setiosflags(ios::fixed | ios::showpoint) << setprecision(2); cout << "Bill\tTip\tTotal"<< endl; for(double bill=5;bill<=30;bill+=5) { tip=bill*.15; total=bill+tip; cout << "$" << bill; cout << "\t$" << tip; cout << "\t$" << total << endl; } return 0; }