Προγραμματισμός

* Γνώση Υπολογιστών >> Προγραμματισμός >  >> Γλώσσες Προγραμματισμού

Πώς να Γράψετε Απλό Πρόγραμμα COBOL

Εισαγωγή

nCOBOL--COmmon Business Oriented Language--is a programming language that is hard to learn. In order to be able to program in COBOL you need either many years of schooling or an exceptional teacher on the job. However, almost anyone can learn to write a simple COBOL program. The following will give you an inside view to learn how to write a simple COBOL program.

Οδηγίες

  1. Κατανοήστε τη φύση του COBOL. COBOL programmers are highly skilled and in demand. The reason is that although lengthy, COBOL is long lasting. Therefore even writing a simple COBOL program can be time consuming but worthwhile.

  2. Ακολουθήστε τη γλώσσα. COBOL was supposed to be a readable language that even non-programmers could understand. This didn't happen, but since the COBOL language is self-documenting it is easier to understand than other programming languages.

  3. Γνωρίστε τα τρία βασικά μέρη προγραμματισμού. They consist of sequence, selection and iteration.

  4. Βρείτε τι απαιτείται. When writing the program you first need to know what is expected. If you don't understand the requirements, you can't tell the computer what is required.

  5. Γράψτε τις εντολές. After knowing where you want to go you need to put in the statements that will take you there. The computer needs to know exactly what you need in order to produce the results.

  6. Βεβαιωθείτε ότι οι εντολές είναι σε σωστή σειρά και υποβάλετε το πρόγραμμα. If you get error messages return to the program, correct it and then resubmit it. You have now completed your simple COBOL program.

Σχετικά άρθρα

Πνευματικά δικαιώματα © Γνώση Υπολογιστών Όλα τα δικαιώματα διατηρούνται.