Merge branch 'josh_lab2' into 'main'

added text for hello world

See merge request lustje/language-interpreter-lab!5
This commit is contained in:
Joshua Garbi 2024-10-21 11:01:52 -07:00
commit f6dc7afd27
1 changed files with 8 additions and 0 deletions

View File

@ -1,7 +1,15 @@
# Language Proposal
### 1. Hello World
- source used: [Cobol Emulator](https://www.jdoodle.com/execute-cobol-online)
- display the text "Hello World!" in the terminal
- https://www.tutorialspoint.com/cobol/cobol_program_structure.htm this website has useful information about the structure of the cobol language
- the Identification Division is mandatory for all programs and sub divisions have unique sentences within them and determine what is done with variables or IO in this example
#### Input
there is no input for this example
#### Output
the string "Hello World!" is sent to output via the included DISPLAY function
### 2. Quadratic Function
- Code altered from [Marco Biagini](https://www.quora.com/What-is-a-COBOL-program-that-will-solve-a-quadratic-equation)