Functions (and their close relatives, subroutines) are extremely important in writing large programs. In fact, they are what makes writing large programs possible. You will appreciate them more as you write larger and larger programs. Keep that in mind as you experiment with small programs such as this one.
Write a function that takes a real number as an argument and returns the fourth root of that number. Use this function in a main program that reads in a real number, calls your function, and prints out the fourth root. (Hint: use the SQRT intrinsic function.)
Homework Problem 2
The position
, the velocity,
, and the
acceleration
of a satellite in planar motion are
given by

Write a Fortran program that prints out the distance of the sattelite from the origin, the speed of the satelite, and the magnitude of the accleration for any given t.
Your main program should read in a value for t and then print out position, velocity, and acceleration at that time. Note: PARAMETERS defined in the main program can be passed as arguments.
Call the file that contains your program solution2.f. To submit it for grading, use the UNIX Shell window to connect to the directory that contains your program and enter the following command:
handin cs101 problem-2 solution2.f
Hamlet Project