Sie sind auf Seite 1von 1

Geek N Latin Finals

Brainfuck Problem Statements:


Important Note: When using bfdev please take the input as characters (even when the input required are numbers), i.e., the input must in fact be evaluated as the ASCII value of the character. Write a Brainfuck code for each of the following questions:Bf_1 (40 points) Input a string of alphabets in upper case. Delete all the vowels in the string and sort the consonants left in alphabetical order. Sample Input: ESOTERICISM Sample Output: CEMRSST Bf_2 (20 points) Evaluate the expression + + . The program should take a as the first input, b as second, c as third and x as the fourth input.
Important Note: The program should give correct results for single and double digit outputs for full credit.

Sample Input: 1 2 3 4 Sample Output: 27

Whirl Problem Statements:


Whirl_1 (40 points):
Write a program in whirl that will take a number 'n' as input and find the n term in the series:
th

1 3 10 109 . . . Sample Input: 5 Sample Output: 11981

Das könnte Ihnen auch gefallen