You are on page 1of 1

CS1032 – Programming Fundamentals – Lab 1_2 – Additional Exercises

1. Write the pseudo code and draw the flowchart for the following two programming
problems. (No need to write the program). Refer 1.1.4 section in the CS1032 Course Notes

 In English, the continuous form of verbs is obtained by adding the suffix – ing to the
word. Ex: go -> going. A set of rules to transform words are given bellow.
o If the verb ends in e, drop the e and add ing (if not exception: be, see, flee,
knee, etc.)
o If the verb ends in ie, change ie to y and add ing
o For words consisting of consonant-vowel-consonant, double the final letter
before adding ing
o By default just add ing

Create a program to print the continuous form of a given word.

Enter a word: Read

Continuous form: Reading

 Create a program to print a number triangle of any given size. Consider the given
example bellow.

Enter a number: 5

1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

You might also like