Professional Documents
Culture Documents
CS 1101 - AY2022-T2 - Learning Journal Unit 4
CS 1101 - AY2022-T2 - Learning Journal Unit 4
Part 1
Section 6.2 of your textbook describes incremental development. Do the exercise at the end of that section:
As an exercise, use incremental development to write a function called hypotenuse that returns the length of the hypotenuse of a right
triangle given the lengths of the other two legs as arguments. Record each stage of the development process as you go. (Downey, 2015)
After the final stage of development, print the output of hypotenuse(3, 4) and two other calls to hypotenuse with different arguments.
An explanation of each stage of development, including code and any test input and output.
The output of hypotenuse(3,4).
The output of two additional calls to hypotenuse with different arguments.
Part 2
Invent your own function that does some useful computation of your choosing. Do not copy the function from somewhere else. Use
incremental development, and record each stage of the development process as you go. Finally, print output that demonstrates that the
function works as you intended.
An explanation of each stage of development, including code and any test input and output.
The output of three calls to your function with different arguments.
Part 3
How do you feel about the feedback and ratings you have received from your peers?
How do you think your peers feel about the feedback you provided them? And the ratings you gave them?
Reference:
Downey, A. (2015). Think Python: How to think like a computer scientist. Needham, Massachusetts: Green Tree Press.
Submission status
Submission No attempt
status
https://my.uopeople.edu/mod/assign/view.php?id=268134 1/3
12/8/21, 3:01 PM CS 1101 - AY2022-T2: Learning Journal Unit 4
Last modified -
Submission
comments
Comments (0)
Add submission
All activities close on Wednesdays at 11:55 PM, except for Learning Journals/Portfolios which close on Thursdays at 11:55 PM always
following the clock at the top of the page.
Due dates/times displayed in activities will vary with your chosen time zone, however you are still bound to the 11:55 PM GMT-5
deadline.
Jump to...
Resources
UoPeople Library
Orientation Videos
LRC
Syllabus Repository
Honors Lists
https://my.uopeople.edu/mod/assign/view.php?id=268134 2/3
12/8/21, 3:01 PM CS 1101 - AY2022-T2: Learning Journal Unit 4
Links
About Us
Policies
University Catalog
Support
Student Portal
Faculty
Faculty Portal
CTEL Learning Community
Office 365
Tipalti
Contact us
English (en)
English (en)
العربية(ar)
https://my.uopeople.edu/mod/assign/view.php?id=268134 3/3