0

print "Enter quantity" quantity = input() if quantity*100 > 1000: print "Cost is",((quantity*100)-(.1*quantity*100)) else: p

Python code

23rd Feb 2021, 5:22 AM
Siva Kumar YARRAMSETTI
Siva Kumar YARRAMSETTI - avatar
3 Answers
0
A company decided to give bonus of 5% to employee if his/her year of service is more than 5 years. Ask user for their salary and year of service and print the net bonus amount. solve in python
23rd Feb 2021, 6:06 AM
Siva Kumar YARRAMSETTI
Siva Kumar YARRAMSETTI - avatar
+ 1
Your question is incomplete. Please link your code in the description and describe more about your question.
23rd Feb 2021, 6:02 AM
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż - avatar
+ 1
Siva, Please use Python as the thread's tag rather than 'gwss' which is irrelevant. Why your "code" is asking for quantity when it is supposed to ask for employee's salary and year of service? Please follow this guide for posting a question so you can obtain better responses 👍 https://www.sololearn.com/Discuss/333866/?ref=app
23rd Feb 2021, 6:16 AM
Ipang