This simple COBOL program displays an ASCII art robot "COLBOT", along with the message "BEEP BOP". The robot ASCII art is rendered in the terminal when the program is executed.
- Install GnuCOBOL: Before running the program, make sure you have GnuCOBOL installed on your system. You can install it using a package manager like Homebrew:
brew install gnu-cobol
- Compile and Run: Follow these steps to compile and run the program:
- Open a terminal.
- Navigate to the directory containing
colbot.cob
. - Compile the program:
cobc -x -o colbot colbot.cob
- Run the compiled executable:
./colbot
- Enjoy the Robot: After running the program, you'll see the ASCII art robot along with the "BEEP BOP" message displayed in the terminal.
_____
/ \\ BEEP BOP BEEP BOP
| O O | /
| ∆ |/
\\ --- /
\\_____/
|
___|___
/ \\
| COLBOT |
| |
|_________|
Feel free to modify the program or the ASCII art to create your own custom output.
Note
The appearance of the ASCII art may vary based on the font and rendering of your terminal.
- IBM COBOL - IBM's COBOL documentation.
- COBOL Standard - The official COBOL standard website.
- GnuCOBOL - Open-source COBOL compiler.
- COBOL Tutorial - A great tutorial for learning COBOL.
- COBOL ASCII Art - A collection of ASCII art robots.
This project is released under the terms of The Unlicense, which allows you to use, modify, and distribute the code as you see fit.
- The Unlicense removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
- For more details, see the LICENSE file in this repository.
Author: Scott Grivner
Email: scott.grivner@gmail.com
Website: scottgrivner.dev
Reference: Main Branch