chapter_5 Module

All of the programming exercises for Chapter 5: Basic IO



Contents


Subroutines

public subroutine p5_1()

DISCUSSION QUESTION What is the purpose of a format? What are the three ways to define a format?

Arguments

None

public subroutine p5_2()

DISCUSSION QUESTION What is printed out by the following Fortran statements?

Arguments

None

public subroutine p5_3()

DISCUSSION QUESTION What is printed out by the following Fortran statements?

Arguments

None

public subroutine p5_4(file_name)

DISCUSSION QUESTION Read in 5_4.dat and find out what the output will be for the following statements:

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: file_name

public subroutine p5_5(file_name)

DISCUSSION QUESTION Read in 5_5.dat and find out what the value of each variable will be when the READ statements have been completed

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: file_name

public subroutine p5_6()

Generate a table of the base 10 logarithms between 1 and 10 in steps of 0.1

Arguments

None