Answer:
// Program is written in Coral Programming Language
// Comments are used for explanatory purpose
// Declare and input n; n stands for the number of input data
integer n
n = Get next input
// Declare and initialise two Variables to 0;
// The first Variable Sum, is used for addition and the second, Max is used for the max
integer sum
integer max
Sum = 0
Max = 0
// Declare and intialise Variable count to hold the number of positive input data
integer count
count = 0
// Declare array. The array is used to hold all input data
integer array(n) Arr
// Declare iterating variable I
integer i
//Use the following iterative statement to input array data
for i = 0; i < Arr.size; i = i + 1
Arr[I] = Get next input
if Arr[i] >= 0
Sum = Sum + Arr[i]
count = count + 1
if Arr[i] >= Max
Max = Arr[I]
// Declare Variable average
float average
//Calculate and print average
average = Sum/count
Put average to output
Put Max to output
Answer:

Explanation:
The Hexa-decimal numbers have base 16 and includes numbers:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F
The given steps are performed to convert a decimal number to hexa-decimal number, here to convert decimal number 35 to hexa-decimal number:
- Divide 35 by 16
- Note the remainder, r which is 3 here and quotient which is 2
- Again divide 2 (quotient) by 16 and note the remainder, r' which is 2 and quotient is 0
- We will stop here as the quotient is now 0. Usually division by 16 is repeated until we get quotient = 0
- Now arrange the remainder in reverse order to get the hexa-decimal number as r'r
- The hexa-decimal number is

Nand stands for "not and". The truth table for a nand is:
a b | a nand b
0 0 | 1
0 1 | 1
1 0 | 1
1 1 | 0
Hopefully this helps you answer your question.
I wish i could play but my strict mom would never let me :’(