This is the classic logic design problem of using three switches to count from 0 to 7 in binary with each number displaying the appropriate number or dash in order for your bithday to be displayed on a 7 segment display. I had to do this for a digital electronics class... really fun project though.