BC200414184
Sajida Sadiq Ali Bhatti
CS508 Assignment#1
Question No. 1:
Application Domains and Suitable Languages
Recommended
Client/Project Application Requirement Reason
Language
Designed for
scientific
computing; excels at
Research Lab (Weather High-performance scientific handling large
FORTRAN
Simulation) computation, large FP operations numerical arrays
and floating-point
operations
efficiently.
COBOL is great for
making business
Bank (Financial Business reports, decimal arithmetic,
COBOL reports and doing
Software) character data handling
money-related
calculations.
Specializes in
symbolic reasoning
and logic
Natural language processing,
AI Chatbot Prolog programming, ideal
reasoning, logic-based responses
for understanding
and processing
human language.
Ada is made for
systems where
Real-time embedded system with
Aircraft Control System Ada safety and fast
concurrent processing
response are very
important.
Question No. 2:
A programmer working with FORTRAN 77 struggles with writing modular code and
using dynamic memory. Why would FORTRAN 90 be a better choice for this
programmer? Mention at least three specific features along with one reason for
each.
Answer:-
Feature in FORTRAN 90 Reason
Modular Programming It helps keep related parts of code together, making the
Program neat and easy to reuse.
Dynamic Memory Allocation It lets the program use memory as needed while
running,
Which makes the code more flexible.
Array Operations and DO Simplifies mathematical and scientific
FORALL calculations with
Whole-array operations, reducing errors.