You are required to write a program in C++ that reads a list of (non-zero) integ
ID: 3626707 • Letter: Y
Question
You are required to write a program in C++ that reads a list of (non-zero) integers from the standard input device, and calculates and displays the difference of between the largest and the smallest of these values. The program will end when a 0 value is read.Also write another program that C++ to read a series of positive integers from the keyboard (treated as the standard input device), until a non-positive number (0,
or negative number) is read. Compute and display the average of those positive numbers that are read. Obviously we exclude the last non-positive number from the total and average calculation. Also please write algorithm after.