I get an error on the bonus function @ line 19 and I do not understand why I might I will also get an error. I have checked my spaceship, my number vs my strings, and my dom my first problem was about my globals and I got it from "comrate = 0" to global committance
I have to debug blindness. Thanks in advance!
def main ( ): #Wellcome users and sales numbers get printed ("Welcome to Bonus Eligibility Calculator! Please answer the following questions honestly:") name = str (input ("What is your name?")) Sales = float (Input "What is your sales total?") Job Time = Float (Input ("How many months have you been with the company?")) Vacationtime = Float (Input ("How many vacation days have you taken? ")) #Define Global Wars comrate = 0; CompedSlas = 0; BonusCalari = 0; FinalSoundary = 0; # Calculation Bonus (Sales, Jobtime) Holiday (Holiday Time) Print (St (Name) + ", Your Pay Per Click" Format (Final Sealy, '2F')) DEF Bonus (Sale, Time of Job): # Sales Commission Sales & lt; 10000: comrate = 0 elif Sales> 10000 Sales & lt; = 1000000: comrate = .02 elif sales & gt; = 100001 and sales & lt; = 500000: comrate = .15 compedsalary = float (comrate * 2000) if jobtime & gt; 3: BonusSocial = Float (CompadSalary + 1000) Other: Print ("You are not eligible for the bonus due to your limited time in the company.") Alif sales> = 500001 and sales & lt; = 1000000: comrate = .28 compedsalary = float (comrate * 2000) If Job Time & gt; 3: BonusSocial = float (Compartment + 5000) Other: Print ("You are not eligible for bonuses due to your limited arrears. Time in company.") Alif sales> 1000000: Comrate = .35 compedsalary = float (comrate * 2000) If Job Time & gt; 3: BonusSocial = Float (Companiler + 100000) Alive Jobtime & gt; 60: BonusSocialEleary = Float (CompassSlari + 101000) Other: Print ("You are not eligible for the bonus due to your limited time in the company.") DEF Vacations (FinalSeller): If Holiday & gt; 3: Finalsaliary = Float (Bonusclear - 200) Other: FinalSocial = Bonuscelery Men ()
You are using full quotation marks where you should use apostrophes. You are using contraction in your print statement, which confuses the dragon. Just put "Do not" instead of "Do not" in your print statement
No comments:
Post a Comment