Click to like/follow us on:
Write an algorithm that will request for a score, if the the score is greater than or equal to to 35, the algorithm will add 1 to the value, otherwise, it will not add any value to the score. The algorithm will display value of the score?
Solution:
Major Steps
1. Request Data
2. Determine score
3. Display score
Stepwise Refinement
1. Request Data
    1.1 Request score
2. Determine score
    2.1 IF score >= 35 THEN
        2.1.1 score = score + 1
    ELSE
        2.1.2 score = score
3. Display score
Explanation:
If you remember how we make use of count in example five, then step 2.1.1 shouldn't confuse you.
Step 2.1.2 can also be written like this: 2.1.2 Do nothing, why? Because score still have its value, since condition 2.1 is false.


SHARE THIS POST WITH YOUR FRIENDS...::

0 comments:

Leave a Reply

All Posts

Access all posts here!

Categories

Unordered List

Sample Text

Lists of Jobs in the United States

List of Courses & Outlines For UNN Students

Popular Posts

Like us on Facebook

Recent Posts

    Text Widget