0% found this document useful (0 votes)
9 views6 pages

Laboratory Activity 4 - PLAD

Uploaded by

P Jett
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views6 pages

Laboratory Activity 4 - PLAD

Uploaded by

P Jett
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

PSEUDOCODE

 Start
 Char oper
 Int a, b
 Display operation choices
 Input operation
 Input a
 Input b
 Switch (oper)
 Case 1
 Display “Addition selected. The answer is: “ (a+b)
 Break
 Case 2
 Display “Subtraction selected. The answer is: “ (a-b)
 Break
 Case 3
 Display “Multiplication selected. The answer is: “ (a*b)
 Break
 Case 4
 Display “Division selected. The answer is: “ (a/b)
 Break
 End
FLOWCHART
EXERCISE 2

RESULTS

PSEUDOCODE
 Start
 Char alpha
 Display “Enter a letter: “
 Input alpha
 Switch alpha
 Case A, E, I, O, U
 Display “The alpha letter is a vowel and uppercase”
 Break
 Case a, e, i, o, u
 Display “The alpha letter is a vowel and lowercase”
 Break
 Case B, C, D, F, G, H, J, K, L, M, N, P, Q, R, S, T, V, W, X, Y, Z
 Display “The alpha letter is a consonant and uppercase”
 Break
 Case b, c, d, f, g, h, j, k, l, m, n, p, q, r, s, t, v, w, x, y, z
 Display “The alpha letter is a consonant and uppercase”
 Break
 Default
 Display” Special Character, Numbers or Out of Range”
 End
EXERCISE 3

You might also like