Assignment # 2

Implement and test a Fortran 90 program which has the following features:

  1. When the user runs the program he/she gets the following displayed on the screen:

 

Press 1 for  (gof)(x).

Press 2 for (fog)(x)

 

  1. If the user selects 1 or 2, the following will be displayed on the screen.

      Enter your value of x:

After the user enters a real value for x (the real number will be assigned to a variable called x.), he/she gets the job described above performed and the result will be displayed on the screen in a format similar to that I gave to you in the assignment. Then, the program displays the following:

Continue (Y/N)?

If the user hits n or N, then the program stops running. If the user hits any other key, the program repeats the whole process (i.e. goes back to step #1.)

  1. If the user hits a key different than 1 or 2, then he/she must get the following displayed on the screen:

Continue (Y/N)?

If the user hits n or N, then the program stops running. If the user hits any other key, the program repeats the whole process (i.e. goes back to step #1.)