Question #262953

Instruction: Create a program plan, algorithm, flowchart and pseudocode for the following cases:

               A Department Store classifies its credit card holders as to local, national and international. A local card holder resides in Metro Manila, a national, anywhere in the Philippines and an international, anywhere in the world. The programmer must store a code 01, 02, and 03 for local, national and international card holders respectively. The program is to read the cards and store the proper code in each card.


Expert's answer

Program Plan:


Available Input:

Card code = cc

L = 01

N = 02

I = 03


Processing Requirements:

if cc = L

if cc = N

if cc = I


Required Output:

A program that read the cards and store the proper code in each card.


Algorithm:

1. START

2. Print ’Enter the code of your card'

3. Input cc

4. Read

5. If cc is equal to L

6. Print ’Your credit card is Local Card'

7. If cc is equal to N

8. Print ’Your credit card is National Card'

9. If cc is equal to I

10. Print ’Your credit card is International Card'

11. STOP


PSEUDOCODE

1. START

2. Read cc

3. To identify the credit card

3.1 if cc = L

3.2 if cc = N

3.3 if cc = I

4. Print

5. END









Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS