The program that takes any number of non-negative integers as input, and outputs the max and average is in explanation part.
What is programming?Making a set of instructions that instruct a computer how to carry out a task is the process of programming. Computer programming languages like JavaScript, Python, and C++ can all be used for programming.
Here is a Python program that takes any number of non-negative integers as input and outputs the max and average:
numbers = []
while True:
num = int(input())
if num < 0:
break
numbers.append(num)
max_num = max(numbers)
average = sum(numbers) / len(numbers)
print(max_num)
print("%.2f" % average)
Thus, the program uses a while loop to continuously read in input until a negative integer is entered, at which point the loop breaks.
For more details regarding programming, visit:
https://brainly.com/question/11023419
#SPJ1