The programme is able to detect when a negative capacity is entered (above) and shows an error message that tells the user that capacity must be a positive integer.
However, when capacity == 0, the error message says that the field is missing, rather than informing the user that the capacity must be greater than 0.
The programme is able to detect when a negative capacity is entered (above) and shows an error message that tells the user that capacity must be a positive integer.
However, when capacity == 0, the error message says that the field is missing, rather than informing the user that the capacity must be greater than 0.