Copyright  © – Sudharsan Iyengar and Winona State University

 

CS-415            Assignment 1 (Fortran)           Iyengar            Spring 2025

 

Write a Fortran program to solve a set of 3 simultaneous equations. An input file SIMEQ.DAT contains a set if simultaneous equations described as follows:

 

Example:                    

8  9  5   14

-3  -2  2  10

1  4  -5   -35

 

            Describes 3 simultaneous equations with 3 variables, like

 

            8x + 9y + 5z = 14;  -3x – 2y + 2z  = 10;  and 1 x + 4 y – 5 z = -35;

 

            Solve these equations by Gaussian elimination and output the solution.

 

            Output should look like

 

                        X = 2

                        Y = -3

                        Z = 5

 

Install a Fortran development environment and use to develop your application. To get started – develop steps to solve this with just if-then-else and loops and basic reads. Then translate those steps into Fortran.

 

Save your source code to your folder by midnight 3/2/2025.