write an algorithm display numbers between x to y
Answers
Answer:
x and y aren't defined
Explanation:
Step 1: define the problem.
What are we doing
Why are we doing it
Is a solution reasonably possible
What are the constraints / parameters / limitations imposed
How will we use the solution.
Step 2: Look around for already known solutions fitting our problem domain or solutions that can be successfully adapted to it.
Step 3: Break the Problem down into small enough parts to be manageable and understandable.
Identify any unknowns or particularly gnarly or difficult parts and separate them out for special attention.
Step 4: generate a model of the problem and proposed solutions.
Try several and come up with a first approximation of a solution.
Step 5: Test your model solution with the most simplistic version of the problem, then try some more complex versions and identify edge cases and anomalous results.
Step 6: Attempt an implementation of your solution. This will bring forth problems with your model that you can modify to correct it, and there will be feedback between the model and the implementation.
Step 7: If you hit a wall and can not go on with your implementation, go back to Step 3 and see if the parts around the blockage can be broken down further into even smaller steps. Try to identify then exact point of error. Repeat. If nothing works, “Back to the Drawing Board.” => Step 1. There is something missing or wrong with the basic definition of the problem and the solution.
Step 8: Solution works, sort of. Refine your implementation to make it work every time and be as correct as possible and as accurate as necessary with a safety factor of overbuilding to withstand scrutiny of inspectors and people smarter than yourself.
Step 9: Take your documentation that you have continuously updated and clean it up and augment it and proof it for publication.
Step 10: test test test. Discover any strange behavior or anomalous cases or side effects of your solution. Try to fix them if possible, or are least document them if not fixable.
Step 11: Have someone qualified review your solution and provide valuable feedback for improvements. Take their advice with a grain of salt because they could be full of