Thanks for the help so far!
Here's the data from the text file:
111223333 50000
222334444 32000
555998888 45000
With some research on the fly, I've been able to come up with the following block of code:
program AvgSalCheck
implicit none
character(30) :: SalFile
character :: EmpID
real :: line...
I'm a Fortran newbie and would appreciate some advice with a task I've been wanting to try. I need to create a simple Fortran program that calculates the average salary of individuals who make over $40,000. The individual's ID (column position: 7-12) is in one column and their salary (column...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.