Zero - Max Value with two Potentiometers

Stuck in code :

Stuck how ?
What happens when you run the program ?
How are the pots wired ?