Primes programs specifications

From Webhuis wiki
Revision as of 16:18, 25 March 2026 by Martin (talk | contribs) (Created page with " ```mediawiki = pgcobol Prime Numbers Application Documentation = This documentation provides a comprehensive overview of the prime numbers application developed using GnuCOBOL on Linux with PostgreSQL as the database backend. Below you will find links to various sections of the documentation. == Quick Links == * Technology Stack * Component Architecture * Business Requirements (BR) * Database Objects * [[Output File Specification]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

```mediawiki

pgcobol Prime Numbers Application Documentation

This documentation provides a comprehensive overview of the prime numbers application developed using GnuCOBOL on Linux with PostgreSQL as the database backend. Below you will find links to various sections of the documentation.

Quick Links

Technology Stack

The application utilizes the following technologies:

Component Technology
Runtime !! GnuCOBOL 4.0, Linux
SQL pre-processor !! GixSQL (translates EXEC SQL … END-EXEC to GIXSQLExec calls)
Database server !! PostgreSQL 11.22, localhost:5432
Database schema !! primes

More details

Component Architecture

The application consists of the following components:

┌─────────────────────────────────────────────────────┐

More details

Business Requirements

The system is designed to meet the following business requirements:

BR-01: Prime Number Generation

The system shall compute all prime numbers from 3 up to 999,999,999 using a trial-division algorithm and store each confirmed prime in the database.

BR-02: Prime Number Reporting

The system shall produce a formatted printed report listing all primes currently stored in the database.

More details

Database Objects

The application interacts with the following database objects:

Object Type Schema Owner Definition
primes !! Schema !! — !! primes_user !! Container schema
asc_ident !! Sequence !! primes !! primes_user !! INTEGER, START 1, INCREMENT 1
primes !! Table !! primes !! primes_user !! See below

More details

Output File Specification

The output report is generated in the following format:

Property Value
Filename !! primes.prt
Organisation !! Line-sequential
Record length !! 132 characters

More details

Constraints

The application operates under the following constraints:


Terug naar: Cobol and PostgreSQL