What This Document Is
This document is a lab assignment for CISC 106, General Computer Science for Engineers at the University of Delaware. It focuses on practical application of fundamental programming concepts in Python. The lab requires students to write and test several functions, building upon previously learned material and introducing new challenges related to conditional logic, data types, and function design. It’s designed to be completed and submitted by a specific deadline.
Why This Document Matters
This assignment is crucial for engineering students learning to program. Successfully completing it demonstrates a solid understanding of how to translate problem statements into working code. It’s particularly valuable for students preparing for more advanced computer science coursework or projects that require robust and well-documented functions. Students will benefit from working through these exercises to solidify their ability to think computationally and debug their own programs. This lab is best utilized when actively coding along and testing solutions.
Topics Covered
* Conditional Statements (If/Else & Nested Ifs)
* String Manipulation
* Variable Usage and Assignment
* Boolean Logic
* Function Definition and Testing
* Working with the `datetime` module
* Applying logical reasoning to real-world scenarios (veterinary calculations)
What This Document Provides
* Detailed problem descriptions for multiple programming tasks.
* Specific requirements for function design, including expected inputs and outputs.
* A set of test cases (though some require a slightly different approach for accurate evaluation due to time-dependent values).
* Guidance on incorporating external modules into your Python code.
* Opportunities to practice writing clear and concise code comments (purpose and contract).
* A practical context for applying programming concepts to a veterinary dosage calculation.