Course Solutions Uncategorized (Solved) : Algorithm Solution Pseudocode 1 Declare Variables Yourletter Theirletter Hold Single Chara Q34363720 . . . .

(Solved) : Algorithm Solution Pseudocode 1 Declare Variables Yourletter Theirletter Hold Single Chara Q34363720 . . . .

 

Algorithm solution (in pseudocode):

1. Declare variables yourletter, theirletterthat hold a single character each.

2. Declare variables yourgrade, theirgrade thathold whole numbers.

3. Prompt

4. Read.

4A Convert percentage into single digit

5. Run code two times to get the values ofyourgrade and theirgrade andassign the letters to yourletter andtheirletter respectively.

6.          ifyourletter = ‘E’ or theirletter = ‘E’

                        Print on the screen “Invalid input data, cannot determine who didbetter in the test!”

            Stop the program returning a 1.
otherwise if yourletter is less than theirletter

Print on the screen “You did better inthe test, you need to help your partner”
otherwise if yourletter is more than theirletter

Print

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post