You have written 14 codes by now. In each code you wrote something like
1. getting the user input
2. processing or validating the data. like if the user entered some string, you checked for it's length, then converted each lowercase char to it's uppercase value,
3. displayed the result.
The steps you wrote is nothing but algorithm.
Algorithm is simply a sequence of steps executed in order so as to get the desired results.
It's a step by step procedure to solve a problem.
There is no specific rules for writing algorithm except some guidelines.
It is a logical way of solving a problem.
It helps you to create a program easily.
From what i know, algorithm is something that we do, but it's explained step by step example:
When we usually want to call someone we just say:,,I'm taking the phone and i'm calling someone"
In algorithms calling someone will look like this:
1.Go next to the phone
2.Pick up the phone
3.Write the number
4.Put the phone next to your ear
5.Wait for the person to answer the phone
6.Start talking with the person
bunny an algorithm is are Ordered steps that solve a mathematical problem. A precise step-by-step plan for a computational procedure that possibly begins with an input value and yields an output value in a finite number of steps.
Well, I will explain you this, so that even a small kid would understand😉
Algorithm is like your day. First, you get up from your bed->
only then you take a shower ->
Have a breakfast/or not ->|
If the weather
is normal-> then you go to work
Else -> you stay at home and do what you want
If you understand this, it is easy to illustrate this situation in program. In role of 'you' would be a compiler that completes given tasks
___step by step___ untill the expected result😏
With simple words, algorithm is a process that do something. Algorithm is a total of steps which do something or solve something.
For example you want to climb a mountain. You wake up, you prepare your equipment, fill up your water bottles, eat something and you begin your road on the top of the cliff. This process is the algorithm.