During this activity, students should be able to:
This activity helps the student develop the following skills, values and attitudes: ability to analyze and synthesize, capacity for identifying and solving problems, and efficient use of computer systems.
Individually, solve the following set of programming exercises using the brainf*ck programming language.
Write a program called first.bf
that reads a digit d (0 to 9) from the keyboard and prints the first d lowercase letters of the English alphabet. Example (user input is in bold):
6 abcdef
Write a program called dup.bf
that reads a digit d (0 to 9) followed by any character c from the keyboard and prints a total of d consecutive c characters. If d is zero, nothing should be printed. Example (user input is in bold):
6a aaaaaa
Place inside a ZIP file called bf.zip
all the .bf
source files. Use the Online
Assignment Delivery System (SETA) to deliver the ZIP file. No assignments will be accepted through
e-mail or any other means.
IMPORTANT: The program source file must include at the top the author's personal information (name and student id) within comments.
Due date: Monday, November 30.
This activity will be evaluated using the following criteria:
-10 | The program doesn't contain within comments the author's personal information. |
---|---|
10 | The program contains syntax errors. |
DA | The program was plagiarized. |
10-100 | Depending on the amount of exercises that were solved correctly. |