Write a complete and syntactically correct Python program to solve the following problem:  You are the payroll manager for SoftwarePirates Inc. You have been charged with writing  a package that calculates the monthly paycheck for the salespeople. Salespeople at  SoftwarePirates get paid a base salary of $2000 per month.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

Here is the guideline, I found the same question on here, but I wanted to ask specific questions for myt understanding.

Write a complete and syntactically correct Python program to solve the following problem: 
You are the payroll manager for SoftwarePirates Inc. You have been charged with writing 
a package that calculates the monthly paycheck for the salespeople. Salespeople at 
SoftwarePirates get paid a base salary of $2000 per month. Beyond the base salary, 
each salesperson earns commission on the following scale: 
Sales Commission Rate Bonus 
<$10000 0% 0 
$10000 – $100,000 2% 0 
$100,001 - $500,000 15% $1000 
$500,001 - $1,000,000 28% $5000 
>$1,000,000 35% $100,000

Defining my variables:
vacation_days
base_salary

The following additional conditions apply: 
1. If a salesperson has taken more than 3 vacation days in a month, their pay gets 
reduced by $200 
So my initial question is would I create a variable day like:
variable = vacation_days 
vacation_days = float(input"please enter no. of Vacation Days.")
So then the user would be prompted for the number of days?
then indented under
if vacation_days>3          
               base_salary - 200


2. A salesperson earns a bonus only if they have been with the company for 3 
months or more 
3. For salespeople who have been with the company for 5 years or more and who 
have made sales greater than $100,000 an additional bonus of $1000 is added. 
All input to the program will be interactive from the keyboard. The output of the program 
will include: 

a. The name of the salesperson 
b. Their longevity with the company 
c. Their base salary 
d. The commission earned (in Dollars) 
e. The bonus earned 
f. Additional bonus earned (if any) 
g. Deductions (if any) 
h. A total gross paycheck 
i. Your output should look like a paystub (NOT in paragraph format) 
j. All currency should be formatted with a $ sign and 2 decimal places 


Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

I can understand most of the logic behind the code, but the indentations and organizing is where I get confused. It doesn't display well on Bartleby.

I run the program and it says raw_input isn't defined.

I also get confused with the raw input, as we've only been exposed to float and int input.
Could I modify these to name = float(input("enter your name)
etc. ?

the integer and raw_input part is the only part that sort of confuses me aside from indentation 

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education