DeChane / CSC422

For course work related to CSC422 Software Engineering
0 stars 0 forks source link

Error handling: user input has name and age values #12

Closed DeChane closed 2 days ago

DeChane commented 2 days ago

The program needs to check that the user entered two valid entries, one for the name and one for the age.

DeChane commented 2 days ago

Program splits the user input and then checks t ensure that it has exactly two entities. Afterwards, it attempts to convert the second entity into an integer because the age needs to be a valid integer before it can be used by the program to add a pet to the database.