Question: i cant figure out why my code isnt working #include int main() { int total = 0; int people = 0; int fee = 0;
i cant figure out why my code isnt working
#include
int main() { int total = 0; int people = 0; int fee = 0;
cout<< "number of people registering:"; cin>> people; cout <<" ";
if (people >=1 && people <=5) { fee = people * 125; cout << "total amount owed is $" << fee <<". ";
} else if (people >= 6 && people <=11) { fee = people *100; cout << "total amount owed is $" << fee <<". "; } else if (people >=12) { fee = people *75; cout << "total amount owed is $" << fee <<". "; } else { cout << "Please provide valid positive integer"; } system ("pause"); return (0); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
