• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 24 pages
Other

WGU D793 Formal Languages Task 1 and 2 Guide: Programming Paradigms Analysis and Code Conversion from FORTRAN to Python – 2026 Updated with complete solutions.

Document preview thumbnail
Preview 3 out of 24 pages

WGU D793 Formal Languages Task 1 and 2 Guide: Programming Paradigms Analysis and Code Conversion from FORTRAN to Python – 2026 Updated with complete solutions.

Content preview

,WGU D793 Formal Languages Task 1 and 2 Guide: Programming Paradigms Analysis
and Code Conversion from FORTRAN to Python – 2026 Updated with complete solutions.

Task 1 paper template
Title:
Analysis of Legacy Fortran Code: Programming Paradigm and Design Characteristics

Introduction
This paper analyzes the provided Fortran source code to determine its programming style and
overall design characteristics. The analysis focuses on whether the code is procedural or object-
oriented, how the logic is structured, and what features of the code support that conclusion. The
paper also reviews the readability, maintainability, and organization of the code.

Programming Paradigm
The provided Fortran code is best classified as procedural programming rather than object-
oriented programming. Procedural programming organizes code around procedures, functions,
and a sequence of commands that operate on data. In contrast, object-oriented programming
organizes software around classes and objects that combine data and behavior.

In the code, the logic appears to be arranged as a sequence of operations and subprograms rather
than as interacting objects. The program likely uses variables, control structures, and callable
routines to process data step by step. This is a defining characteristic of procedural design. There
is no indication of object-oriented concepts such as class definitions, inheritance, encapsulation
through objects, or polymorphism. Because of this, the code aligns more closely with the
procedural paradigm.

How the Code Is Structured
The code is structured around direct instructions that tell the computer exactly what to do in a
defined order. This kind of structure is common in older Fortran programs, which were often
written for scientific, mathematical, or engineering applications. The program likely relies on:

 variable declarations
 conditional statements
 loops
 functions or subroutines
 sequential execution of tasks

This structure makes the program functional, but it also means the design is centered on actions
and calculations rather than reusable software objects.

Why the Code Is Not Object-Oriented
The code is not object-oriented because it does not appear to use the core features associated
with OOP. Object-oriented software usually includes classes that define objects, methods
attached to those objects, and mechanisms such as inheritance and encapsulation. In this Fortran

, program, the data and logic are likely separated in a traditional procedural way rather than
packaged into classes.

Instead of creating objects that manage their own state and behavior, the program likely
processes shared or passed-in data through separate routines. That approach is procedural, not
object-oriented.

Strengths of the Current Design
One strength of procedural code is simplicity. For smaller programs or calculation-heavy tasks,
procedural code can be straightforward and efficient. It can also be easier to trace execution from
start to finish because the logic usually follows a predictable sequence.

Another strength is that procedural Fortran has historically been well suited for numerical
processing. If the purpose of the code is scientific or computational, this design may still perform
its intended task effectively.

Weaknesses of the Current Design
Although the code may work, procedural code can become harder to maintain as it grows larger.
If the program contains many branches, repeated logic, or weak modular organization,
understanding and updating it can become more difficult. In legacy code, readability may also
suffer if variable names, comments, or structure are unclear.

Compared with object-oriented design, procedural code may offer less flexibility for reuse and
extension. Changes in one part of the program can affect other parts more easily when the design
is not strongly modular.

Maintainability and Readability
From a software engineering perspective, maintainability depends on how clearly the code is
organized. If routines are well named and responsibilities are separated cleanly, procedural code
can still be maintainable. However, legacy Fortran code is often harder to read because of older
syntax styles and limited abstraction mechanisms.

If the provided code includes unused branches or confusing paths, that would further reduce
readability and make future updates more difficult. A developer maintaining the program would
need to spend time tracing how data moves through the procedures.

Conclusion
Based on its structure and characteristics, the provided Fortran code should be identified as
procedural rather than object-oriented. The program appears to rely on sequential logic,
routines, and direct data processing instead of objects and classes. While this design can still be
effective for numerical or scientific tasks, it may be less flexible and less maintainable than a
modern object-oriented design. Overall, the code reflects a traditional procedural approach
commonly associated with legacy Fortran programs.

Document information

Uploaded on
April 1, 2026
Number of pages
24
Written in
2025/2026
Type
Other
Person
Unknown
$17.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Wiseman
3.9
(1715)
Sold
8849
Followers
3926
Items
32530
Last sold
3 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions