Create a file named sales_bonus.py 2. Prompt the user for the amount of sales made, convert...

90.2K

Verified Solution

Question

Programming

Create a file named sales_bonus.py

2. Prompt the user for the amount of sales made, convert to afloat, and assign to sales.

3. Prompt the user for number of days missed, covert to an int,and assign to days_missed

4. If the user have more than 3000 of sales and has missed lessthan or equal to two days of work, assign bonus to 100.

5.   Else if the user have more than 3000 ofsales or has missed less than or equal to one day of work, assignbonus to 50.

6. Otherwise, assign a bonus of 0.

7. Print out the bonus with two decimal places of precision.

Answer & Explanation Solved by verified expert
4.2 Ratings (789 Votes)
import math input the number of    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students