219k views
0 votes
Dates of birth were entered into a computer program . The data was stored in the format DAY/MONTH/YEAR.The program rejected this date of birth as incorrect 06/13/2014. Why was this not accepted?Why do you think this error occurred

User TheFoxx
by
4.9k points

1 Answer

5 votes

Answer:

i. This value was not accepted because we have 12 months and not 13.

ii. This is because the user entered the value for the day as value for the month.

Step-by-step explanation:

i. Why was this not accepted?

This value was not accepted because we have 12 months and not 13. The user entered a value that was above the maximum value registered for the number of months in a year- which is 12.

ii. Why do you think this error occurred

This is because the user entered the value for the day as value for the month.

This could be because the user uses a date system different from that of the program.

User Marek Rycharski
by
5.6k points