Jump to content

User talk:Kithira/Course Pages/CSCI 12/Assignment 2/Group 2/Homework 2

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Comments for Group 2 From Group 1

[edit]

This is a very concise and simply code, and well explained. The only changes we would suggest are fixing a few technical errors and adding a raw data input option, as well as giving the program user more available information.

In terms of technical errors, the name of the function should remain constant, so just decide between syracuse( ) or syr( ) and it should be fine. The other one is changing the assert( syr(7) == 11) to assert(syr(7) == 22) since 7*3 + 1 = 22.

To add functionality try calling the function in the _test( ) segment and asking for raw input, along with adding a print line in the beginning explaining what input is needed so the user knows what is expected. Finally, adding an #explanation in the code itself so the user can use the help command would really flush it out.

CMacLeanC (talk) 04:17, 12 January 2013 (UTC)[reply]