Recent content by rk2ray
-
R
Fortran Why Is My FORTRAN If/Else Statement Not Working Correctly?
thank you borg. I am learning about Fortran. I'm a rookie here. But your tip really helps.- rk2ray
- Post #5
- Forum: Programming and Computer Science
-
R
Comp Sci Fortran DO Statements (how many loop times)
Hello, Examining the following DO statements and determining how many times each loop will be executed. Assume that all loop index variables are integers. (a) DO irange = -32768, 32767 (b) DO j = 100, 1, -10 (c) DO count = 2, 3, 4 (d) DO index = -4, -7 (e) DO i = -10, 10, 10 The loop will...- rk2ray
- Thread
- Fortran Loop
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
R
Fortran Why Is My FORTRAN If/Else Statement Not Working Correctly?
So it should be...the following code..am i right? IF ( temp > 103 ) THEN WRITE (*, *) NTemperature dangerously highN ELSE IF ( temp > 99.5) THEN WRITE (*, *) NTemperature slightly highN ELSE IF ( temp > 97.5) THEN WRITE (*, *) NTemperature normalN ELSE IF ( temp < 97.5) THEN...- rk2ray
- Post #3
- Forum: Programming and Computer Science
-
R
Fortran Why Is My FORTRAN If/Else Statement Not Working Correctly?
I am not able to get what's wrong in below. IF ( temp < 97.5 ) THEN WRITE (*, *) NTemperature below normalN ELSE IF ( temp > 97.5) THEN WRITE (*, *) NTemperature normalN ELSE IF ( temp > 99.5) THEN WRITE (*, *) NTemperature slightly highN ELSE IF ( temp > 103.0) THEN WRITE (*, *)...- rk2ray
- Thread
- Code Error Fortran
- Replies: 6
- Forum: Programming and Computer Science
-
R
Fortran FORTRAN PROGRAM FOR MEANS (Beginner)
I am learning Fortran and I am able to write code for 3 number means. Now For computing it for set of numbers is not getting in my mind. I am not able to do it. Writing a single Fortran program that calculates the arithmetic mean, rms (root-mean-square) average, geometric mean, and harmonic...- rk2ray
- Thread
- Beginner Fortran Means Program
- Replies: 3
- Forum: Programming and Computer Science
-
R
Fortran How Can I Improve My Fortran Program for Calculating Different Types of Means?
I am aware of the hand calculations. I am new to fortran programming language and I have written basic programs for average calculation of three number. But I am stuck with this. I was trying to write single Fortran program that calculates the arithmetic mean, rms (root-mean-square) average...- rk2ray
- Post #4
- Forum: Programming and Computer Science
-
R
Fortran How Can I Improve My Fortran Program for Calculating Different Types of Means?
Trying to write a single Fortran program that calculates the arithmetic mean, rms (root-mean-square) average, geometric mean, and harmonic mean for a set of numbers (for example - 4 4 4 4 4). I don't know if I am doing the write way. Please guide me. PROGRAM ComputingMeans IMPLICIT...- rk2ray
- Thread
- Code Fortran
- Replies: 4
- Forum: Programming and Computer Science