Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Muslims are permitted to hunt lawful animals and birds which cannot be easily caught and slaughtered, including non-meat-eating animals such as deer and wild rabbits.

image text in transcribed
image text in transcribed
Muslims are permitted to hunt lawful animals and birds which cannot be easily caught and slaughtered, including non-meat-eating animals such as deer and wild rabbits. This is clearly stated in Surah al-Maidah, Verses 4:1 and 4: 2. The first verse limits the prohibition of hunting during ihram, while the second verse explains the necessity of hunting after tahalluk. Write a program that replicates a game of hunting. A six-sided dice is used to determine what the user has caught in this game. A set number of hunting points are awarded for each possible item. The points will remain concealed until the user has completed hunting, at which point a message congratulating the user will appear, depending on the quantity of hunting points earned. Here are some suggestions and pointers to get you started: Each round of the game is an iteration of a loop that repeats if the player wants to continue hunting for food. The programme will ask the user whether he or she wants to continue hunting at the start of each round. The software simulates the roll of six-sided dice (you need to write a dice class for this purpose). A number generated from the dice represents each item that can be caught, such as 1 for "squirrel," 2 for "porcupine, * 3 for "rabbit" and so on. Think of your own animal and values to put in this list so no student code should be the same. For the message congratulating the user, you must be creative with your own message so no two student code should be the + . same. . The loop keeps a running total of the user's hunting points Each item caught by the user is worth a different number of points. The entire amount of hunting points earned is displayed when the loop has been completed, along with a message that varies depending on the number of points earned. In the sample output, the animals are as follows: 1. Pigeon = 3 points 2. Llama = 100 points 3. Quail 2 points Deer - 20 points tps:Maleemc.ium.edu.myimodiquz/attempt.php?attempt=12808&cmid=58706&page=1 4. 214 21/22. 2:32 PM Test 2 (page 2 of 2) 5. Squirrel = 5 points 6. Wild Goat = 50 Please choose your own animal and points representing each that you think that particular animal is worth. Sample Output Let's go hunting! You pick up your bow and shoot an arrow ... You caught (a quail]. Try hunting again? (Y or N): y You pick up your bow and shoot an arrow ... You caught [a deer). Try hunting again? (Y or N): y You pick up your bow and shoot an arrow ... You caught [a llama]. Try hunting again? (Y or N): y You pick up your bow and shoot an arrow ... You caught (a squirrel). Trv hunting again? (Y or N): V Misteeme, sum edu mimodiqulu attempt php/attomet 128056acmid=56706&page=1 3/4 14 22.2.32 PM Test 2 (page 2 of 2) You pick up your bow and shoot an arrow ... You caught (a llama). Try hunting again? (Y or N): n You got a total of 227 hunting points. Great Job! You are a natural! Muslims are permitted to hunt lawful animals and birds which cannot be easily caught and slaughtered, including non-meat-eating animals such as deer and wild rabbits. This is clearly stated in Surah al-Maidah, Verses 4:1 and 4: 2. The first verse limits the prohibition of hunting during ihram, while the second verse explains the necessity of hunting after tahalluk. Write a program that replicates a game of hunting. A six-sided dice is used to determine what the user has caught in this game. A set number of hunting points are awarded for each possible item. The points will remain concealed until the user has completed hunting, at which point a message congratulating the user will appear, depending on the quantity of hunting points earned. Here are some suggestions and pointers to get you started: Each round of the game is an iteration of a loop that repeats if the player wants to continue hunting for food. The programme will ask the user whether he or she wants to continue hunting at the start of each round. The software simulates the roll of six-sided dice (you need to write a dice class for this purpose). A number generated from the dice represents each item that can be caught, such as 1 for "squirrel," 2 for "porcupine, * 3 for "rabbit" and so on. Think of your own animal and values to put in this list so no student code should be the same. For the message congratulating the user, you must be creative with your own message so no two student code should be the + . same. . The loop keeps a running total of the user's hunting points Each item caught by the user is worth a different number of points. The entire amount of hunting points earned is displayed when the loop has been completed, along with a message that varies depending on the number of points earned. In the sample output, the animals are as follows: 1. Pigeon = 3 points 2. Llama = 100 points 3. Quail 2 points Deer - 20 points tps:Maleemc.ium.edu.myimodiquz/attempt.php?attempt=12808&cmid=58706&page=1 4. 214 21/22. 2:32 PM Test 2 (page 2 of 2) 5. Squirrel = 5 points 6. Wild Goat = 50 Please choose your own animal and points representing each that you think that particular animal is worth. Sample Output Let's go hunting! You pick up your bow and shoot an arrow ... You caught (a quail]. Try hunting again? (Y or N): y You pick up your bow and shoot an arrow ... You caught [a deer). Try hunting again? (Y or N): y You pick up your bow and shoot an arrow ... You caught [a llama]. Try hunting again? (Y or N): y You pick up your bow and shoot an arrow ... You caught (a squirrel). Trv hunting again? (Y or N): V Misteeme, sum edu mimodiqulu attempt php/attomet 128056acmid=56706&page=1 3/4 14 22.2.32 PM Test 2 (page 2 of 2) You pick up your bow and shoot an arrow ... You caught (a llama). Try hunting again? (Y or N): n You got a total of 227 hunting points. Great Job! You are a natural

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

Semantics In Databases Second International Workshop Dagstuhl Castle Germany January 2001 Revised Papers Lncs 2582

Authors: Leopoldo Bertossi ,Gyula O.H. Katona ,Klaus-Dieter Schewe ,Bernhard Thalheim

2003rd Edition

3540009574, 978-3540009573

More Books

Students also viewed these Databases questions

Question

Explain the purpose of a business plan.

Answered: 1 week ago

Question

O o c m

Answered: 1 week ago

Question

What are the stages of project management? Write it in items.

Answered: 1 week ago

Question

How do members envision the ideal team?

Answered: 1 week ago

Question

Has the team been empowered to prioritize the issues?

Answered: 1 week ago

Question

b. Does senior management trust the team?

Answered: 1 week ago