An employee is given 10% of their salary as a bonus when the employee works for more than 4 years or a salary when is 10000 and above, otherwise, 5% of their salary as the bouns is given, Write a Python program that reads the salary of employees, and the number

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 30PE
icon
Related questions
Question
An employee is given 10% of their salary as a bonus when the employee
works for more than 4 years or a salary when is 10000 and above, otherwise,
5% of their salary as the bouns is given,
Write a Python program that reads the salary of employees, and the number
of years worked then calculates and displays the bonus they get, total salary
with bonus amount
Transcribed Image Text:An employee is given 10% of their salary as a bonus when the employee works for more than 4 years or a salary when is 10000 and above, otherwise, 5% of their salary as the bouns is given, Write a Python program that reads the salary of employees, and the number of years worked then calculates and displays the bonus they get, total salary with bonus amount
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Constants and Variables
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning