// add.cpp #include #include // for cls, exit and atof functions #include // for lisspace() #include "../include/clear.hpp" using namespace std; //#include float add(float, float); // prototype method for add funtion // void DosCls(); // from external file void badinput(); // function prototype for function to clear cin int main(int argc, char* argv[]) //get arguments { DosCls(); //external function to clear screen float x = 0.0, z = 0.0; cout << "Enter a number followed by [enter] to add, then 0 to quit!" <=2) { cout <<"starting program: " <>x; // get new number if(!cin.fail()) { // if cin ok call the add functionfail z=add(x,z); } else if(cin.fail()){ // clear cin on errors cout <<"with your total at " <