Needless to say with a processor this is a single chip solution.
One could use a single thumbwheel switch, a button to select
digit, and a muxed 4 digit 7 segment display.
Keep this in mind for future possibilities.
Something like this -
This is one chip except for R's and NPN transistors, those are external. I think you can
get those in a single array chip with the base resistors included in chip.
The debouncer is to debounce the digit select switch, again debouncer onchip.
So solution, being muxed, minimal wiring so much more reliable.
Code maybe 20 - 25 lines of code. Board size of your thumb. 4 digit display size your
choice. After debug and coding finished you snap off right side of board and
use left side in solution.
Board is ~ $ 15.
As you can see in right hand windows most of chis resources left for other tasks, eg.
they are available for other functionality.
Ignore values of R's in image, base Rs ~ 1K and collector probably around 200 ohms would do.
To power you could use a 5V wall adapter with USB cable out and plug into board.
Regards, Dana.