0
Need a class consisting on 2methods
payroll with classes method1 accept parameters bonus rate and hours gross =hours*rates method2 gross*bonus user must input hours and rate can someone help me i got class payrate: def calc_gross(self,hours,rate,bonus,gross) bonus = 100 if hours <= 40 else 50 gross= hours*rate return gross def gross_sum_bonus(self,gross,bonus): return gross + bonus now print Dunno how to print and need help fixing syntax
4 Answers
+ 1
thx
+ 1
Cyberfire Gaming I updated it again. Before you had redundant member function arguments.
+ 1
oh thanks