#include <iostream>
using namespace std;
int main()
{
//Declare data types
int NumChild; //var
const int BaseFee = 150; //constant
//Welcome + Instructions for users
cout << "Welcome to IOU Secondary School" << endl <<endl<< "How many
children are attending the school this year? "<<endl;
//Nested IF-ELSE (error checking)
if (cin >> NumChild)/
{
//do not accept any non-integer values
if (cin.peek() == EOF|| cin.peek() == '\n' )
{
}
else
{
cout <<endl<< "Error: enter a whole number."<<endl<< "The …
Run Code Online (Sandbox Code Playgroud)