please help with the project

Application to count solid pieces.

Perform a program for the following system using the Arduino board:

It is a system that counts the pieces that pass through a certain point, your system must meet the following conditions:

The system turns on and off of a normally open button (only one).
An indicator (LED) should show if the system is on or off.
Each time a solid piece passes through a presence sensor (it can be simulated with a push button), a first counter must be increased in its program (count the total pieces).
Every 10 pieces have been counted, a second counter must be incremented, which counts the lots of 10 pieces that have passed since the system was turned on.
The value of the counters should be displayed on an LCD screen.
If the system is off (LED off), and a part passes through the sensor, no counter should be increased.
When the system is turned off (push button pressure to turn off, DO NOT turn off the Arduino), the counters must be reset (counters equal to zero).
Your system must be precise, that is, every time a piece passes through the sensor, its counter must only increase by one unit (not two, not three, etc.)

Could you help me with the programming code?

Is this your college exercise?

Janberriov:
Could you help me with the programming code?

Help probably yes, "provide you with" will probably get laughter from most guys here.
Provide details. What have you programmed? On what board? What sensors are you using? What display? Which part does not work? How did you wire it?
Providing such details will much more easily get you help, rather than having guys start their popcorn maker and going "watch this, this is fun"

Besides, this is probably the totally wrong section.....

One shall be the number thou shalt count, and the number of the counting shall be one...

Janberriov:
(not two, not three, etc.)

But on a more serious note.

To do this ...

Janberriov:
Each time a solid piece passes through a presence sensor (it can be simulated with a push button), a first counter must be increased in its program (count the total pieces).

... start with the state change detect tutorial

edit: Also look at this example, which has the button wired the "better" way from the pin to ground, with the internal pullup enabled.

Janberriov:
Could you help me with the programming code?

The connection diagram of Fig-1 shows the possible relationship among your START/STOP Button, Simulated Sensor, Indicating LED, LCD, and UNO.
unoPro.png
Figure-1:

Try to write some codes within the functions of the following blank sketch for the operation of circuit of Fig-1 as per your specifications of your post. You need to write code for the following purposes:
(1) Set the directions of DPin-2, DPin-3 as input with internal pull-up resistors enabled.
(2) Set the direction of DPin-3 as output.
(3) Convert A4 and A5 lines into I2C Bus.

Which commands are to be used? Check here: Arduino Reference.

void setup()
{

}

void loop()
{

}

unoPro.png

GolamMostafa:
Which commands are to be used? Check here: Arduino Reference.

void setup(){}

void loop(){}

How to build a statue of David: start with a huge block of rock, and chip away the parts that don't look like David.

Use the forum Google search function in the upper right of this page to search for the key words of your project. You will probably find many previous project discussions and code for similar projects.

Janberriov:
Could you help me with the programming code? my homework assignment?

Fixed it for ya.

12Stepper:
How to build a statue of David: start with a huge block of rock, and chip away the parts that don't look like David.

If OP's still around, he or she might like me to post the code I actually wrote for this the other day; but needs to ask explicitly.

12Stepper:
How to build a statue of David: start with a huge block of rock, and chip away the parts that don't look like David.

Or

SSS Strategy.

GolamMostafa:
SSS Strategy.

Not even going to ask.

Probably, the OP is collecting the materials:
Arduino UNO
I2C Based 2-line 16 Characters LCD
One LED
One Resistor
2 Push Buttons
Few Male-to-Male Jumper Wires
Breadboard

I there may have been projects for bee counters at the entrance of bee hives.