Skip to main content
Engineering LibreTexts

6.4: Exercises

  • Page ID
    54266
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Below are some quiz questions and project suggestions based on this chapter.

    Quiz Questions

    Below are some quiz questions.

    1. What does the (*,*) mean?

    2. Provide the statement to output a message “Programming is Fun!”

    3. What are the statements to declare and read the value for a person's age in years?

    Suggested Projects

    Below are some suggested projects.

    1. Type in the circle area program, compile and execute the program. Test the program on several sets of input.

    2. Modify the circle area program to request a circle diameter. The formula for circle area must be adjusted accordingly. Recall that radius = diameter divided by two. Test the program on several sets of input.

    3. Type in the velocity program from the previous chapter and update to prompt for and request input for the acceleration and time, and then display the results. Test the program on several sets of input.

    4. Write a Fortran program to read the length of the a and b sides of a right triangle and compute the perimeter length. The program should prompt for input and display the values for sides a, b, c, and the perimeter with appropriate headings.
      The formulas for the c side and perimeter are:
      \[ c = \sqrt{a^2 + b^2} \nonumber \] \[ \textit{perimeter} = a + b + c \nonumber \]Test the program on several sets of input.

    Triangle perimeter.
    1. Write a Fortran program to compute geometric information for a kite. The program should read the a, c and p lengths and compute the q length. The program should display an appropriate prompt, read the values, compute the answer, and display the original input and the final result.
      The formula for the \(q\) length is as follow:
      \[q = \sqrt{a^2 - \frac{p^2}{4}} + \sqrt{c^2 - \frac{p^2}{4}} \nonumber \]Test the program on several sets of input.

    Kite diagram.

    This page titled 6.4: Exercises is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by Ed Jorgensen via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.

    • Was this article helpful?