Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
Writing Programs (26 Marks) Create python program using Anaconda Navigator Jupyter Note Book. The file name should be YourID_Name. After the completion, download the notebook
Writing Programs (26 Marks) Create python program using Anaconda Navigator Jupyter Note Book. The file name should be YourID_Name. After the completion, download the notebook file and upload it in the link given in E-learning. (8 Marks) 1. Ministry of Education asked you to create a python program to calculate new basic salary based on the yearly increment. Write a python program using chained conditional statements to do the following: 1. Ask the student to input their salary and their grade. b. The grade of the student is either D or Mor F. c. If the grade of the student is "D" then the increment in the salary for this student is 30 Rial on the salary. d. If the grade of the student is "M" then the increment in the salary for this student is 20 Rial on the salary e. If the grade of the student is "F" then the increment in the salary for this student is 5 Rial on the salary f. If grade other than D. M or F the following message will be displayed "Enter valid Grade g. Calculate the new salary using given formula, newsalary - salary + increment h. Display the old salary and the new salary as given in the sample output. Sample output Enter the current Salary: 2000 Enter your Grade: D The current salary is : 2000.0 and the new salary is: 2030.o
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started