I need the following C++ .txt code.
Create a C++ console application that uses a while loop to count, total, and average a series of positive integers entered by a user. The user enters a -1 to signal the end of data input and to display the count, total, and average of the numbers entered.
need a c++ code. Counters & Accumulators: Prompt the user to enter numbers. Repeat until the user enters a sentinel value (-1). When the user is done entering numbers, calculate and display the number of entries, the sum of the entries and the average value of the entries.