Question: Program 3. Write a program that computes the sum of all the negative integers in a list of integers. As input, the program is to
Program 3. Write a program that computes the sum of all the negative integers in a list of integers. As input, the program is to read the data from the data file Sumneg.dat. The data file has the following format:
Line 1 n (number of integers in the list)
Line 2 int1
Line 3 int2
Line 4 int3
Etc.
Write the output to the screen in the following format
The negative integers are:
The sum of all the negative integers is: value
In C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
