-
Notifications
You must be signed in to change notification settings - Fork 1
Input Format Plan
Expected Input: The user will be prompted as part of the constructor function of each apppointment class instance, for each column.
Date: A string (e.g. "14-03-2025") Matching the date format
Time: A string (e.g. "22:41") Matching the time format in 24hour
Appointment Details: A string (No specific format, limit is available memory)
Pet ID: An integer, unique identifier linking appointment to a pet (Will be checked against the database)
Owner ID: An integer, unique identifier linking appointment to an owner (Will be checked against the database)
Expected Input: The system will prompt the user to input a pet’s details, ensuring proper validation.
Pet Name: A string (e.g., "Max"). Should only contain letters and spaces, no numbers or special characters.
Breed: A string (e.g., "Labrador"). Should only contain letters and spaces.
Age: An integer representing the age in years (e.g., "5"). Must be a positive number.
Vaccination Status: A boolean (e.g., "Y" for vaccinated, "N" for not vaccinated). Only accepts "Y" or "N".
Medical History: A string (e.g., "No known allergies"). Can contain letters, numbers, and punctuation.
Owner ID: A numeric identifier linking the pet to an owner (e.g., "1001"). Must match an existing owner in the system.
Expected Input: The system will prompt the user to input an owner’s details, ensuring proper validation.
Owner Name: A string (e.g., "John Doe"). Should only contain letters and spaces.
Address: A string (e.g., "123 Elm Street, London"). Can contain letters, numbers, commas, and spaces.
Phone Number: A string (e.g., "07123 456789"). Must match a phone number pattern (e.g., XXXXX XXXXXX).
Email: A string (e.g., "johndoe@example.com"). Must follow a valid email format (example@domain.com).
Owner ID: A unique numeric identifier assigned to each owner (e.g., "1001"). Auto-generated or manually entered.
Expected Input:
The system will prompt the user to input their login credentials and select a user role. Each user role will determine the level of access and permissions within the system.
Username: A string (e.g., "drsmith"). Should only contain letters and numbers. No spaces or special characters.
Password: A string (e.g., "Roe123"). Must be at least 4 characters long.
Role selection: An integer (e.g., 1,2, 04 3).
For veterinarian For admin For staff Input must maych one of the valid role options.
By Luke Pring and Jack Turner for the Software Development 2 module at University of Roehampton, London.