Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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:

((((((please in python and when is not an integer number print "wrong input "no error while running the program and put comments when you write the codes)))))

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 39 No zakat 1 sheep 40 120 121 200 2 sheep 3 sheep 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 0", and then terminate. Using loops in solving this question is not allowed

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

Students also viewed these Databases questions