12
12
form of the letter. If the letter is a consonant interchange it with the letter
one ahead and if vowel by two ahead.
ALGORITHM
Step 1: Start
Step 2: Declare a class and write the functions with name encrypt().
Step 3: Declare a class with another name call the previous function using
extends.
Step 4: Accept the data from the user and print the values in different lines.
Step 5: Stop.
Program code:
ALGORITHM
Step 1: Start
Step 2: Declare a class and write the functions with name accept() and
encode().
Step 3: Declare a class with another name call the previous function using
extends.
Step 4: Accept the data from the user and print the values in different lines.
Step 5: Stop.
Program code:
ALGORITHM
Step 1: Start
Step 2: Declare a class and write the functions with name Accept(), Increment()
and Display().
Step 3: Declare a class with another name call the previous function using
extends.
Step 4: Accept the data from the user and print the values in different lines.
Step 5: Stop.
Program code:
ALGORITHM
Step 1: Start
Step 2: Declare a class and write the functions with name accept(), calculate()
and display().
Step 3: Declare a class with another name call the previous function using
extends.
Step 4: Accept the data from the user and print the values in different lines.
Step 5: Stop.
Program code: