Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(8 Marks) 1. Ministry of Labor asked you to create a python program to calculate new basic salary based on the yearly increment in the

image text in transcribed
(8 Marks) 1. Ministry of Labor asked you to create a python program to calculate new basic salary based on the yearly increment in the basic salary. Write a python program using chained conditional statements to do the following. a. Accept basic salary and grade of the employee. b. The grade of the employee is either A or B or C. c. If the grade of the employee is "A", then the increment in basic salary is 50 d. If the grade of the employee is B, then the increment in basic salary is 25. e. If the grade of the employee is C, then the increment in basic salary is 10. f. If grade is other than A,B or C, display a message "Invalid Grade entered" g. Calculate and display the new basic salary using below formula: new BaiscSalary-basicsalary + increment h. Display the old basic salary and the new basic salary as given in the sample output. Sample Output: Enter Your basic Salary: 1500 Enter Your Grade: A The old basic salary is: 1500.0 and the new Basic salary is: 1550.0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions