Led Binary Counter

Dear forum users,

I'm fairly new to programming and arduino. I wanted to do a small project but i can not seem to figure it out. I'm not asking for the whole code but some assisstance would be much appreciated.

For my project i need to solve the following;

I have connected 4 led's to my breadboard, these leds should give me a random 4 bit binary number. On the side i have a pushing button, so if the random gives me the number 15 (which is the maximum amount of 4 bits and which means all leds are burning) i have to press the button 15 times in order to succeed.

Can anyone please guide me? Much appreciated!

Also i'm not sure if it's allowed to say this but, i am willing to pay whomever may assist me with my arduino projects. Such as grading my work from time to time and teach me their knowledge.

but i can not seem to figure it out.

Show us what you've tried so far, even if it doesn't work.
Tell us what you expected it to do, and what it actually did.

Edit: Do you want this moved to "Gigs and collaborations"?

AWOL:
Show us what you've tried so far, even if it doesn't work.
Tell us what you expected it to do, and what it actually did.

Edit: Do you want this moved to "Gigs and collaborations"?

Thanks for replying AWOL! I'm currently at work but i can safely say that what i've tried miserably failed so i'm starting from scratch. And i'm not sure, i am in seek of someone with enough knowledge. These projects aren't very big, they were handed as beginner projects. So if moving me to the gigs section would help, so be it.

Firm-up your specification.
Like, when do you assume the user/operator has stopped pressing the button?
After a timeout?
How long a timeout?

How does the device indicate a new number?
What if the number chosen is the same as the number already being displayed?

Break your problem down into manageable chunks, and build the chunks into simple, non-blocking functions.

Specification;

4 Leds, perhaps 1 led extra. This led would indicate whether the input was right or not. The other 4 leds would be indicating a binary in 4 bits. So when all lights burn that would be the number 15. You'll have to press the button 15 times in order to have it correct. If the random number 5 is given the first and the 3rd lamp will only burn. You'll have to press the button 5 times in order to succeed.

1 button specifying the input. With 2 seconds delay, if the input equals the random binary number given then it would be correct.

This would be the output.. I just need to figure out the software

Helo and welcome,

It looks like someone recently wanted to do something similar (showing binary number on LEDs), see the replies of this topic