[Tutor] Number cruncher

Robert Berman bermanrl at cfl.rr.com
Wed Apr 22 18:28:26 CEST 2009


Hello John,

It is the general policy of the 'tutors group' to not solve homework 
problems. Given that very basic rule, there are obvious elements for 
which we can definitely give help. But, you have to take the first step 
and that is a relatively big one. You have to define an algorithm or 
recipe to solve the problem. To do so, you must define your inputs. As a 
first comment, while you did specify that each assignment is weighted, 
you gave no indication that a grade was a required input. Obviously a 
heavily weighted '88' may carry more import than a very light weight '94'.

What you need to do is define (1) Your inputs, (2) your outputs (what 
comes out of the recipe and how you want it served. ie, how displayed. 
And then, once you have defined the obvious you must resolve the heart 
of the algorithm, how do you compute the outputs.

Hopefully, while this is certainly not 'the' answer it will get you started.

Robert Berman

John Jenkinson wrote:
> I need to write code that determines a students final grade based on 
> the number of each type of assignment turned in with its corresponding 
> weighted percentage.  There will be 15-20 inputs.  I have not reached 
> this point in my learning of python, so I would like to request a 
> resource that would help me for this project.
>  
> - John Jenkinson
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>   


More information about the Tutor mailing list