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 position: 102-109) is in another, both of which are in a text file.
Could anyone please show me how to go about this using Fortran? My main question is how do I go about pulling in the text file data for manipulation? If anyone could provide a mini-mock up of what I'm trying to accomplish, I would be grateful!
I could easily do this in Excel, but I want to start learning more about Fortran.
Thanks for reading this.
Could anyone please show me how to go about this using Fortran? My main question is how do I go about pulling in the text file data for manipulation? If anyone could provide a mini-mock up of what I'm trying to accomplish, I would be grateful!
I could easily do this in Excel, but I want to start learning more about Fortran.
Thanks for reading this.