Question: Additional Notes: 1- Make Meaningful Comments by using # 2- Use Appropriate Variable Naming Conventions 3- Show your code in Python or any
1.3 Question 2 (60 points) Write a python program that computes the zakat, obligatory charity, on sheep. The program asks the user to input the number of sheep, and then the zakat is calculated based on the following schedule: The number of sheep ranging Zakat Amount From 1 To 39 40 120 200 No zakat 1 sheep 2 sheep 3 sheep 121 201 399 400 499 4 sheep 500 599 5 sheep Same pattern as the last two rows Notes: . Make sure that the input value is a positive integer. If not, the program must print the following message: "Wrong Input. Number should be an integer greater than o', and then terminate, . Using loops in solving this question is not allowed 1.3.1 Sample Runs Please enter the number of shop:-3 Wrong input. Number should be an integer greater than 0 Please enter the number of sheep: 24 The zakat amount sheep Please enter the number of sheep: 119 The act amount 1 sheep Please enter the number of sheep. 616 The act amount sheep
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
