Various components i of the course will receive scores s(i).
These will be weighted by weights w(i).
Your score will be determined by
Max Sum w(i)s(i),
s.t. Sum w(i) = 100,
where
a(i) <= w(i) <= b(i)
In particular,
i a(i) b(i)
Quiz1 12 18
Quiz2 12 18
Final 20 30
HW* 20 30
Talks 16 24
*daily and portfolio