National+5+Arithmetic+Operators

media type="custom" key="27759463"


 * Questions**

Write pseudocode for the following:

1. Game score (a) Decide on a suitable variable name for a player's game score (b) Initialise the player's game score to 0 (c) Add 50 to the score (d) Subtract 20 from the score

2. Birthday (a) Decide on a suitable variable name to store the user's age (b) Initialise the user's age to 16 (c) Add 1 to the user's age

3. What would be the output of the following code?

4. What would be the output of the following code?

5. Banking (a) Decide on a suitable variable name to store a user's bank balance (b) Initialise the user's balance to 500 (c) The user withdraws 50 (d) The bank pays interest of 5%. (i) Calculate the interest (multiply the balance by 5/100) (ii) Add the interest to the original balance