Massive shoutout to @Joseinnewworld for grabbing 7 of our #NFTs! Your support means the world to us as creators. You’re a true legend! 🤩🔥 #eCash $XEC #nftcollector #NFTDrop #BlockchainSimplicity #NFT #NFT4season #NFTMint #PayButton As usual, I'm preparing an #NFT #gift for you pic.twitter.com/gYdYIEhwZB
— Gaexe (@gaexe_) January 24, 2025
The programmer's code of ethics guides us to be good programmers—those who write code for humans, not just for machines. This can be achieved by meeting the following three criteria:
- Correct -> accurate.
- Clear -> clear.
- Efficient -> efficient.
Program Flow
Input -> Process (the most complex part) -> Output.To ensure a program meets the above criteria, we need to follow these programming steps:
- Define the problem.
- Create an outline of the solution.
- Translate the outline into more detailed steps or an algorithm.
- Convert the algorithm into a programming language (coding). The code/program consists of statements written in a programming language.
- Test the program (debugging) to find bugs/errors and then eliminate them.
Algorithm
A sequence of steps expressed clearly and unambiguously to solve a problem within a specific time frame. Example: the steps for making a phone call.Characteristics/Requirements of an Algorithm:
- Unambiguous: The steps in the algorithm must have a single, clear interpretation.
- Precise: The steps must be exact.
- Definite: The algorithm must produce the same results if the same steps are repeated.
- Finite: The algorithm must complete within a specific time frame.
Ways to Write an Algorithm:
- Descriptive explanation (natural language).
- Pseudocode.
- Flowchart: A diagram that illustrates the sequence of instructions for processes using a computer and the relationships between different processes through specific symbols.
