Reference no: EM132197850
Write a complete c++ program to do the following (you can, if you wish, use one or more function):
Read in two integers from a data file and process them as described below.
Read and process value repeatedly until you come to the end of the file. You may select the name for the data file.
Write to a separate output file (you can select the name for the output file) the integer that were values read in.
For each set of two values, write to the output file whichever one of the following messages is appropriate (assume that 0 is positive.)
Make as few tests (comparisons) as possible.
a - both values are positive
b - one value is positive and the other is negative
c - neither value is positive For example, suppose the data file holds 11 -5 -9 -1