displaying results of analog input on seven segment display

Clean up what code you've written so far and post it.

What type of seven segment display is this?