,WGU D793 Formal Languages Task 1 and 2 Guide: Programming Paradigms Analysis
and Code Conversion from FORTRAN to Python – 2026 Updated with complete
solutions.
WGU D793 Formal Languages Study Guide
Task 1: Programming Paradigms Analysis
Understanding the Core Paradigms
For Task 1, you need to analyze how different programming paradigms approach problem-
solving. Here are the four paradigms you'll encounter:
Imperative Paradigm focuses on explicit step-by-step instructions that change program
state. Think of it as giving someone a detailed recipe - "do this, then do that, then do this."
FORTRAN exemplifies this paradigm, using DO loops, GOTO statements, and mutable
variables to manipulate data directly. The programmer controls exactly how and when
operations execute.
Functional Paradigm treats computation as mathematical function evaluation without
mutable state or side effects. Python supports functional features like map(), filter(), and
lambda expressions, though it's not purely functional. The key difference from imperative is
that you describe what to compute rather than how to compute it.
Object-Oriented Paradigm organizes code around objects that contain both data and
methods. Python excels here with classes, inheritance, and polymorphism. This contrasts
with FORTRAN's procedural approach where data and operations remain separate.
,Declarative Paradigm focuses on expressing logic rules and constraints while letting the
system determine execution. SQL queries exemplify this - you state what data you want,
not how to retrieve it.
Paradigm Comparison Table for Your Task
FORTRAN
Paradigm Key Characteristics Python Example
Example
DO i=1,10
Sequential execution, mutable x(i) = for i in range(10):
Imperative
state, explicit control flow x(i) + 1 x[i] += 1
END DO
Pure functions, no side effects, Less list(map(lambda x:
Functional
recursion common x+1, x))
class
DataProcessor:
Encapsulation, inheritance,
OOP Not available def process(self,
polymorphism
x):
return x+1
How FORTRAN's Imperative Nature Manifests
When analyzing FORTRAN code for Task 1, look for these imperative hallmarks:
Variable declaration with IMPLICIT NONE - FORTRAN requires explicit typing, revealing
its low-level, state-focused
, WGU D793 Formal Languages - Complete 60-Page Case Study Guide
Task 1 & Task 2: Programming Paradigms Analysis and FORTRAN to Python
Conversion
PART ONE: EXECUTIVE SUMMARY (Pages 1-3)
Course Overview
WGU D793 Formal Languages requires students to master two primary competencies:
• Task 1: Analysis of programming paradigms and their application in language design
• Task 2: Practical code conversion from legacy FORTRAN to modern Python
This comprehensive 60-page case study provides complete solutions, step-by-step
methodologies, and ready-to-use code templates for both tasks, updated for the 2026
curriculum.
Key Learning Objectives
Task Primary Focus Deliverable
Task 1 Paradigm Analysis Comparative analysis essay (2,500-3,000 words)
Task 2 Code Conversion Working Python code from FORTRAN source
and Code Conversion from FORTRAN to Python – 2026 Updated with complete
solutions.
WGU D793 Formal Languages Study Guide
Task 1: Programming Paradigms Analysis
Understanding the Core Paradigms
For Task 1, you need to analyze how different programming paradigms approach problem-
solving. Here are the four paradigms you'll encounter:
Imperative Paradigm focuses on explicit step-by-step instructions that change program
state. Think of it as giving someone a detailed recipe - "do this, then do that, then do this."
FORTRAN exemplifies this paradigm, using DO loops, GOTO statements, and mutable
variables to manipulate data directly. The programmer controls exactly how and when
operations execute.
Functional Paradigm treats computation as mathematical function evaluation without
mutable state or side effects. Python supports functional features like map(), filter(), and
lambda expressions, though it's not purely functional. The key difference from imperative is
that you describe what to compute rather than how to compute it.
Object-Oriented Paradigm organizes code around objects that contain both data and
methods. Python excels here with classes, inheritance, and polymorphism. This contrasts
with FORTRAN's procedural approach where data and operations remain separate.
,Declarative Paradigm focuses on expressing logic rules and constraints while letting the
system determine execution. SQL queries exemplify this - you state what data you want,
not how to retrieve it.
Paradigm Comparison Table for Your Task
FORTRAN
Paradigm Key Characteristics Python Example
Example
DO i=1,10
Sequential execution, mutable x(i) = for i in range(10):
Imperative
state, explicit control flow x(i) + 1 x[i] += 1
END DO
Pure functions, no side effects, Less list(map(lambda x:
Functional
recursion common x+1, x))
class
DataProcessor:
Encapsulation, inheritance,
OOP Not available def process(self,
polymorphism
x):
return x+1
How FORTRAN's Imperative Nature Manifests
When analyzing FORTRAN code for Task 1, look for these imperative hallmarks:
Variable declaration with IMPLICIT NONE - FORTRAN requires explicit typing, revealing
its low-level, state-focused
, WGU D793 Formal Languages - Complete 60-Page Case Study Guide
Task 1 & Task 2: Programming Paradigms Analysis and FORTRAN to Python
Conversion
PART ONE: EXECUTIVE SUMMARY (Pages 1-3)
Course Overview
WGU D793 Formal Languages requires students to master two primary competencies:
• Task 1: Analysis of programming paradigms and their application in language design
• Task 2: Practical code conversion from legacy FORTRAN to modern Python
This comprehensive 60-page case study provides complete solutions, step-by-step
methodologies, and ready-to-use code templates for both tasks, updated for the 2026
curriculum.
Key Learning Objectives
Task Primary Focus Deliverable
Task 1 Paradigm Analysis Comparative analysis essay (2,500-3,000 words)
Task 2 Code Conversion Working Python code from FORTRAN source