#include <iostream>
#include <string>
using namespace std;
int main(void)
{
int total, added, dropped, tuition;
cout << "Enter total: ";
cin >> total;
cout << "Enter add: ";
cin >> added;
total = total + added;
cout << "Enter dropped? ";
cin >> dropped;
total -= dropped;
cout << "Total number: " << total << endl;
tuition = (total + dropped) * 72;
cout << "Total tuition: $" << tuition << endl;
cout << "Average tuition: $"
<< (float) tuition / total;
return 0;
}
|