Professional Documents
Culture Documents
Grade: 12C
Pseudocode
START
DECLARE baseNum, heightNum, area as Real
baseNum = 0.0
height = 0.0
area = 0.0
STOP
Flowchart
2. A company gives out bonuses based on the amount of income generated by their sales
representatives per month. Once the income generated is greater than or equal to
$10,000 a bonus of 20% is given. If the income generated is greater than or equal
$8,000 but less than $10,000 a bonus of 15% is given. If the income generated is
greater than or equal to $5,000 but less than $8,000 a bonus of 10% is given. If the
income generated is less than $5,000 then a 3% bonus is given. Read the income
generated and print the bonus. Your program should terminate after all 25 sales
representatives have been processed.
Pseudocode
START
DECLARE incomeAmt, bonus as Real
DECLARE count as Integer
incomeAmt = 0.0
bonus = 0.0
count = 0
count = count + 1
ENDWHILE
STOP
Flowchart
3. Design a program that will prompt for and receive the time expressed in 12 hr format
(eg 11:05 pm) convert it to 24-hour format (eg 23:05) and display the new time to the
screen. Your program terminates when -1 is encountered, use the repeat until loop.
Pseudocode
START
DECLARE timeDigi, timeSolider as REAL
DECLARE dayNight as String
DECLARE count as integers
timeDigi = 0.0
timeSolider = 0.0
WHILE dayNight != -1 DO
IF dayNight = “am” Then
WRITE “Please enter your time in 12 hr format (eg. 11.00).”
READ timeDigi
END WHILE
STOP
Flowchart