This repository contains the starter code, templates, and tests for the Requirements Specification II lab. Students will implement a meeting slot suggestion function, write specifications, and explore the impact of requirements completeness on AI‑assisted coding.
You are asked to implement a Python function that suggests possible meeting time slots for a given day. The function takes as input a list of existing calendar events for that day and a desired meeting duration. Its goal is to return a list of valid start times at which the meeting could be scheduled. A valid time slot should respect typical working hours and should not conflict with existing events. If no suitable time slots are available, the function should return an empty list. You may assume that time values are provided in a standard string format (e.g., “09:30”), and you are free to choose an appropriate internal representation. You may use ChatGPT to assist with reasoning about the problem, generating code, or writing tests.
- src/solution.py – starter file where you implement
suggest_slots. Do not rename this file. - test_solution.py – Public tests you can run to check basic correctness. Use a test runner such as
pytestto execute these tests.
- Install Python 3 if not already installed.
- Implement your solution in
solution.py. - Optionally create
student_tests.pyand write at least 5 test cases. - Run tests using:
pytest file_name.py- Fix any failing tests before moving on. Remember that hidden tests will check additional requirements.
Follow the instruction in the manual.