cin and cout are part of the standard namespace. Early on, use this:
using namespace std; // after the #includes
Since you
cin >> base_cost;
you shouldn't make itconst.
float base_cost = 50.00, // base cost of rental
Statements end in a semicolon.
rental_cost = base_cost + (cost_daily * n_days);
tax = rental_cost * .07;
total_cost = rental_cost + tax;
sec_dep = total_cost * .10;
bal_due = total_cost - sec_dep;
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314