Write a program for the HR department to define promotion strategy for every employee. The minimum salary allowed is 3,000. The maximum salary allowed is 100,000 AED. The salary increases by 10% for every 2 years for the first 6 years, and increase by 5% for every 2 years for after the first 6 years. The salary cannot exceed 100,000 AED or the double of the original salary. The program must ask the user to enter the salary and the number of years. The program then prints list of the salary increment per year. Sample 1: Enter the salary (3K-100K): 2000 Enter the salary again (3K-100K): 200000 Enter the salary again (3K-100K): 20000 Enter the number of years (>= 1): 0 Enter the number of years again (>= 1): -1 Enter the number of years again (>= 1): 8 After Year 1 2 3 4 6 7 8 Salary 20000.00 AED 22000.00 AED 22000.00 AED 24200.00 AED 24200.00 AED 26620.00 AED 26620.00 AED 27951.00 AED Sample 2: Enter the salary (3K- 100K): 90000 Enter the number of years (>= 1): 10 After Year Salary 90000.00 AED 99000.00 AED 99000.00 AED 1 2 3 4 5 6 7 8 9 10 100000.00 AED 100000.00 AED 100000.00 AED 100000.00 AED 100000.00 AED 100000.00 AED 100000.00 AED Sample 3: Enter the salary (3K - 100K): 6000 Enter the number of years (>=1): 30 After Year Salary 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 6000.00 AED 6600.00 AED 6600.00 AED 7260.00 AED 7260.00 AED 7986.00 AED 7986.00 AED 8385.30 AED 8385.30 AED 8804.56 AED 8804.56 AED 9244.79 AED 9244.79 AED 9707.03 AED 9707.03 AED 10192.38 AED 10192.38 AED 10702.00 AED 10702.00 AED 11237.10 AED 11237.10 AED 11798.96 AED 11798.96 AED 12000.00 AED 12000.00 AED 12000.00 AED 12000.00 AED 12000.00 AED 12000.00 AED 12000.00 AED
Write a program for the HR department to define promotion strategy for every employee. The minimum salary allowed is 3,000. The maximum salary allowed is 100,000 AED. The salary increases by 10% for every 2 years for the first 6 years, and increase by 5% for every 2 years for after the first 6 years. The salary cannot exceed 100,000 AED or the double of the original salary. The program must ask the user to enter the salary and the number of years. The program then prints list of the salary increment per year. Sample 1: Enter the salary (3K-100K): 2000 Enter the salary again (3K-100K): 200000 Enter the salary again (3K-100K): 20000 Enter the number of years (>= 1): 0 Enter the number of years again (>= 1): -1 Enter the number of years again (>= 1): 8 After Year 1 2 3 4 6 7 8 Salary 20000.00 AED 22000.00 AED 22000.00 AED 24200.00 AED 24200.00 AED 26620.00 AED 26620.00 AED 27951.00 AED Sample 2: Enter the salary (3K- 100K): 90000 Enter the number of years (>= 1): 10 After Year Salary 90000.00 AED 99000.00 AED 99000.00 AED 1 2 3 4 5 6 7 8 9 10 100000.00 AED 100000.00 AED 100000.00 AED 100000.00 AED 100000.00 AED 100000.00 AED 100000.00 AED Sample 3: Enter the salary (3K - 100K): 6000 Enter the number of years (>=1): 30 After Year Salary 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 6000.00 AED 6600.00 AED 6600.00 AED 7260.00 AED 7260.00 AED 7986.00 AED 7986.00 AED 8385.30 AED 8385.30 AED 8804.56 AED 8804.56 AED 9244.79 AED 9244.79 AED 9707.03 AED 9707.03 AED 10192.38 AED 10192.38 AED 10702.00 AED 10702.00 AED 11237.10 AED 11237.10 AED 11798.96 AED 11798.96 AED 12000.00 AED 12000.00 AED 12000.00 AED 12000.00 AED 12000.00 AED 12000.00 AED 12000.00 AED
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
Related questions
Question
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 4 images
Knowledge Booster
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.Recommended textbooks for you
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education