Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,164,192 members, 7,856,768 topics. Date: Tuesday, 11 June 2024 at 06:58 AM

An Algorithm To Answer Prayers - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / An Algorithm To Answer Prayers (986 Views)

Help Construct An Algorithm In Php Code / Write An Algorithm To Add N Binary Numbers / Ludo Game Algorithm Wanted For AI Project (2) (3) (4)

(1) (Reply) (Go Down)

An Algorithm To Answer Prayers by javarules(m): 10:55am On Feb 26, 2009
Lets say you are approached by the CTO of heaven as a programmer to design an algorithm to answer prayers.

The algorithm should be able to handle conflicts in prayers, like if two people ask two opposite things(e.g one ask that obama should not be president and another ask that he should be). The algorithm to resolve conflicts and answer prayers must include conditions like

How religious is the person. (scale of 1 to 100)
How often he/she prays. (scale of 1 to 100)
Is past prayer records, has he/she has a history of answered prayers(scale of 1 to 100), has he/she been known to ask seemingly unrealistic things (scale of 1 to 100)
etc
You should also take care of special people like the widows, fatherless and motherless, poor, disabled and people who are praying for forgiveness of sins. These people are given precendence.
To complete this algorithm, you should also take into considering through whom the prayer was offered, Holy Mary, Jesus, Muhammed or Angels
(priotize this as you may wish on a scale of 1 to 100).

Finally write a program to test this algorithm, giving all possible scenarios to your tests.
Re: An Algorithm To Answer Prayers by javarules(m): 3:45pm On Mar 03, 2009
is this such a very difficult algorithm??
Re: An Algorithm To Answer Prayers by jacob05(m): 5:05pm On Mar 03, 2009
Your question is self explanatory but am not so good in writing algorithms , hope to learn from u. And about the program ,let see want i can do about it. grin
Re: An Algorithm To Answer Prayers by jacob05(m): 5:05pm On Mar 03, 2009
Your question is self explanatory but am not so good in writing algorithms , hope to learn from u. And about the program ,let see want i can do about it. grin
Re: An Algorithm To Answer Prayers by javarules(m): 5:15pm On Mar 03, 2009
was hoping someone might come up with a good algorithm too

(1) (Reply)

Nigeria Crashes Out Of Microsoft Software Design Competition / Is This Right? / Why Do Nigerian Software Developers Avoid Maven When Building Java Applications?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.