Algorithm for repetition and random sorting

I am writing software which is basically a form of test. That's not important, but right now I have an algorithm that sorts the last 5 questions into a random order and then begins with question one.

It then repeats.

The only problems I have with this code are the questions may receive duplicate answers. As in, the user has a few choices which are selected randomly and my current code only tests to see if the random selection equals the answer, and changes it so that only one of them is the right answer. The wrong answers themselves may duplicate.

I know this is a basic if/then and can easily do it, but I've shoved in enough other logic to have messy code and I could use some help cleaning up the algorithm altogether.

I want a fresh mind to accomplish this task so I can see a more systematic way of accomplishing my goal.

Aside from one other error, which I know how to fix, I'm going to post my code so you can see what I'm doing. It's PureBasic, which is not hard to read. It declares variables like this VariableName.I (where I is the type of variable).

I'm programming the GUI, logic otherwise, and pretty much making it, but I'm by myself and could use someone's viewpoint on it.

## Deliverables

I've figured out that I should not combine the array used for selection and randomizing with the array used to hold the data. This has caused me plenty of errors already and when I rewrite that part, I can refresh my algorithm on the choice-creation side and literally flush its buffers to prevent mix-ups (another bug it has). So after I do that I may be fine, but I'd be hoping for the best outcome so I might still need someone to write a fresh algorithm.

I used to be more into math/coding and tutorials so the tough algorithms were easy, but now I sloppily make them and step through them like I'm new slowly working out all the kinks. Just not as logical as I used to be.

Oh yeah, the main function of this program is to quiz the user on a few questions then repeat those 5 times while rearranging the order. Then they move on to the next set. It has more complex functions too but if this is logically cleaned up then the next should be easy to code and I'll handle that.

I'm NOT going to ask for someone to do the whole thing for me, yet anyway. I'm tired of seeing posts like that, so I'm just asking for this part for assistance. People are too lazy!

Note that this request is asking for your ability to think logically more than anything else. I don't care how many basic systems you've finished or what portfolio you have, as long as you can design.

That means if you have an unfinished, or tons of unfinished programs, that prove you can think complex, I'll count that. But if you can just explain that you know english, math, and enough to at least create this clean, that'll be good too. Like I said, you will get my code that does this already, but with bugs. No, you won't get the program, just the algorithm.

Thank you.

also, bid for approximately one or two hours, but if you understand this already then it'll probably take way less than that. It took me 2 hours to figure out how to make this algorithm is why I'm saying that.

Think of it as a "gateway" and each gateway opens when the first 5 things have been seen a few times. That's what made it easy on my brain.


Habilidades: Engenharia, Microsoft, MySQL, PHP, Arquitetura de software, Teste de Software, Testes / Garantia de qualidade, Treinamento, Testes de Usabilidade, Teste de Website, Área de trabalho do Windows

Veja mais: writing the last you have seen, writing in math, writing bug, writing an algorithm for a program, writing algorithms, why programming is important, why is writing so hard, why functions are important in programming, why algorithms are important, whole systems design, what you do for me i will do for you, what should i ask for, what's an algorithm, what's algorithm, what might people need help writing with, what is the best sorting algorithm, what is the algorithm, what is sorting data, what is sorting algorithm, what is programming used for, what is on the prove it test, what is data sorting, what is c programming used for, what is a variable in programming, what is a programming algorithm

Acerca do Empregador:
( 14 comentários ) Everett, United States

ID do Projeto: #2977960

6 freelancers estão ofertando em média $34 para esse trabalho


See private message.

$59.5 USD in 10 dias
(37 Comentários)

See private message.

$85 USD in 10 dias
(7 Comentários)

See private message.

$12.75 USD in 10 dias
(5 Comentários)

See private message.

$17 USD in 10 dias
(1 Comentário)

See private message.

$17 USD in 10 dias
(0 Comentários)

See private message.

$11.05 USD in 10 dias
(0 Comentários)