Please send questions to st10@humboldt.edu .
#include 

#include "profit.h"

using namespace std;



/*--------------------------------------------------
 Contract: main : void -> int
 Purpose: show the user the profit for ticket prices
          from 4.50 to 5.50, changing by a dime each
          time; print the results to the screen.

 Examples: it should simply print those profits
           each time....

-----------------------------------------------------*/

int main()
{
    // local variables
    float tick_price;

    cout << "Welcome to a tester for profit!" << endl;
    cout << endl;
    
    // initial ticket price to check profit for: 4.50
    tick_price = 4.5;

    // output to two decimal places
    cout.setf(ios::fixed);
    cout.setf(ios::showpoint);
    cout.precision(2); 

    // ask for profits for each ticket price between
    // 4.50 and 5.50, in dime increments
    while (tick_price <= 5.5)
    {
        cout << "Profit for $" << tick_price;
        cout << " is: $" << profit(tick_price) << endl;

        tick_price = tick_price + .10;
    }

    return 0;
}