HW3_solutions - PROBLEM 3.5 Program column Real L,S...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
PROBLEM 3.5 Program column Real L,S Character *3 units Parameter (units = 'psi') *Prompt user to input slimness ratio (S) print*, 'enter slimness ratio (S) value' read*, S *propose if statements for 2 different situations for S and calculations IF (S .LT. 100.) THEN L = 16500. - .475 * (S**2.) print*, 'safe loading (L) =', L, units ELSE L = 17900. / (2.+ (S**2./17900.)) print*, 'safe loading (L) =', L, units ENDIF END ---------------------------------------------------- PROBLEM 3.8 PROGRAM SAFE IMPLICIT NONE LOGICAL PESTOK REAL TEMP, HUM, WIND * Prompts user to input values for temperature, humidity and wind speed. PRINT*, 'PLEASE ENTER THE TEMPERATURE.' READ*, TEMP PRINT*, 'PLEASE ENTER THE RELATIVE HUMIDITY' READ*, HUM PRINT*, 'PLEASE ENTER THE WIND SPEED.' READ*, WIND * Depending on values for temperature, humidity and wind speed, the user is told if conditions are good for spraying. IF ( (TEMP.GE.70) .AND. (HUM.GT.15) .AND. (HUM.LT.35) .AND. (WIND.LE.10) ) THEN PESTOK = .TRUE. PRINT*, PESTOK PRINT*, 'THESE ARE GOOD CONDITIONS FOR SPRAYING.' ELSE
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern