Write an algorithm that gets as input three data valuesx,y, andz and outputs the average of these values if the value ofx is positive. If the value ofx is either zero or negative, your algorithm should not compute the average but should print the error message "Bad Data" instead.