

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Various computer programming assignments and examples for students. Topics include declaring and manipulating arrays, inputting and reversing character arrays, searching for subarrays, capitalizing words, and using functions. Sample inputs and outputs are provided for each task.
Typology: Exercises
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Sample Output: Common elements: 2, 4, 6, 8, 20
Sample Input: a[] : program b[]: computer Index: 3
Sample Output: a[]: procomputer
Sample Input: this is a computer programming exercise
Sample Output: siht si a retupmoc gnimmargorp esicrexe
Sample Input: A[ ] = helloworld B[ ] = hello Sample Output: Word found Sample Input: A[ ] = helloworld B[ ] = good Sample Output: Word not found
Sample Input: Hello world Sample Output: He@lo World
Sample Input: 2 , 16 Sample Output: 3, 6, 9, 12, 15
Characters ASCII Values
A โ Z 65 โ 90
a โ z 97 โ 122
Sample Input: f Sample Output: e Sample Input: A Sample Output: Error! No previous alphabet.