Merge branch 'josh_lab2' into 'main'
added text for hello world See merge request lustje/language-interpreter-lab!5
This commit is contained in:
commit
f6dc7afd27
|
|
@ -1,7 +1,15 @@
|
||||||
# Language Proposal
|
# Language Proposal
|
||||||
|
|
||||||
### 1. Hello World
|
### 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
|
### 2. Quadratic Function
|
||||||
- Code altered from [Marco Biagini](https://www.quora.com/What-is-a-COBOL-program-that-will-solve-a-quadratic-equation)
|
- Code altered from [Marco Biagini](https://www.quora.com/What-is-a-COBOL-program-that-will-solve-a-quadratic-equation)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue