I am having difficulty with writing a python code on using decision statements i
ID: 3625534 • Letter: I
Question
I am having difficulty with writing a python code on using decision statements in python based on the following:"A retail company assigns a $5,000 store bonus if monthly sales are $100,000 or more. Additionally, if their sales exceed 125% or more of their monthly goal of $90,000, then all employees will receive a message stating that they will get a day off."
I did the flowchart for it in Raptor and that wass simple, however i cannot figure out what to do in Python. Please help
Explanation / Answer
im not a python programmer but i can help break this down for you. first thing is to get a value for the monthly sales then do a if statement to check. if monthlySale >= 100000 then monthlySale+=5000. next thing is the percent thing double percent=monthlySale/9000. percent=percent*100 if percent>=125 then "Day Off!!" like i said i dont know the pythin syntax so i just freehanded it for ya. good luck bro
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.