// labifelse.cpp for CPS 171 Practice with if-then-else's Updated Fall 02 // (Your name) #include#include #include using namespace std; int main() { cout << "Your name" << endl; // declare variables here // declare input file and open it ifstream infile; infile.open("labifelse.dat"); if(!infile) { cout << "Cannot open input file\n"; return 1; } // get first number from the data file // use a while loop until end of file infile ... while ( ... ) { // echo data here // test for negative, zero or positive // get next number infile ... } return 0; }