reset password
Author Message
sidguttula
Posts: 16
Posted 20:39 May 20, 2016 |

For problem 2 on this weeks' homework, I got the right output by using only 2 methods other than main. The homework never said to use an exact number of methods. Is that okay, will I get credit for that?

kknaur
Posts: 540
Posted 13:15 May 21, 2016 |

That should be ok.  It's also ok to use more methods.  Your code should have a logical use of methods and should try to stick to a "one task per method rule."  A general rule of thumb is that if you cannot explain what your method does in 1 or two short sentences, it probably needs to be broken up into smaller methods.