Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Writing Programs (26 Marks) Create python program using Anaconda Navigator Jupyter Note Book. The file name should be your ID_Name. After the completion, download the

image text in transcribed
Writing Programs (26 Marks) Create python program using Anaconda Navigator Jupyter Note Book. The file name should be your ID_Name. After the completion, download the notebook file and upload it in the link given in E-learning (8 Marks) 1. Bank Muscat asked you to create a python program to calculate bonus that will be given to each employee at the end of the year. Write a python program using chained conditional statements to do the following. a. Accept salary and class grade of the employee. b. The class grade of the employee should be either 1 or 2 or 3. c. If the class grade of the employee is 1, then percentage is 0.10 d. If the class grade of the employee is 2, then percentage is 0.20 e. If the class grade of the employee is 3, then percentage is 0.30 f. If class grade other than 1, 2 or 3, display a message "Invalid class Grade entered g. Calculate and display the GrossSalary using below formula GrossSalary - Salary + (Salary * Percentage) h. Display salary and the Gross salary as given in the sample output. Sample output Enter Your Salary: 2000 Enter Your Class Grade: 2 The salary is : 2000.0 and the Gross salary is: 2400.0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions