ALGORITHM

in #kr7 years ago

ALGORITHM can be defined as a step by step approach in problem solving. Algorithm can also be defined as a sequence of finite sets of instructions, logically ordered to solve a defined problem
CHARACTERISTICS OF ALGORITHM
• Algorithm is written in simple language
• An algorithm ends after a fixed number of steps
• Each step in an algorithm clearly specifies the action preformed
• There is always a unique successor to each action
• It must have a finite set or sequence of actions.

Task 1: Write an algorithm to add two numbers
1. Start
2. Get the first number
3. Get the second number
4. Add the two Numbers
5. Display the result
6. Stop

Total commitment is paramount to reaching the ultimate in performance. Tom flores.
download (5).jpeg

Task 2: Write an algorithm that accepts five numbers and display the sum and average od the numbers.
1. Start
2. Get the first number
3. Get the second number
4. Get the third number
5. Get the fourth number
6. Get the fifth number
7. Add the five numbers
8. Divide the sum by five
9. Display sum and average
10. Stop

Sort:  

Woff, woff!

Hello @danielcares, Nice to meet you!

I'm a guide dog living in KR community. I can see that you want to contribute to KR community and communicate with other Korean Steemians. I really appreciate it and I'd be more than happy to help.

KR tag is used mainly by Koreans, but we give warm welcome to anyone who wish to use it. I'm here to give you some advice so that your post can be viewed by many more Koreans. I'm a guide dog after all and that's what I do!

Tips:

  • If you're not comfortable to write in Korean, I highly recommend you write your post in English rather than using Google Translate.
    Unfortunately, Google Translate is terrible at translating English into Korean. You may think you wrote in perfect Korean, but what KR Steemians read is gibberish. Sorry, even Koreans can't understand your post written in Google-Translated Korean.
  • So, here's what might happen afterward. Your Google-Translated post might be mistaken as a spam so that whales could downvote your post. Yikes! I hope that wouldn't happen to you.
  • If your post is not relevant to Korea, not even vaguely, but you still use KR tag, Whales could think it as a spam and downvote your post. Double yikes!
  • If your post is somebody else's work(that is, plagiarism), then you'll definitely get downvotes.
  • If you keep abusing tags, you may be considered as a spammer. It may result to put you into the blacklist. Oops!

I sincerely hope that you enjoy Steemit without getting downvotes. Because Steemit is a wonderful place. See? Korean Steemians are kind enough to raise a guide dog(that's me) to help you!

Woff, woff! 🐶

Coin Marketplace

STEEM 0.21
TRX 0.26
JST 0.040
BTC 101158.43
ETH 3649.74
USDT 1.00
SBD 3.20