In the Fortran program; Converting the temperature values to each other and setting the deadline according to the entered note
FORTRAN
The first version for the IBM 704, produced by IBM in 1954, was developed by John Backus and his team. Backus and his team published a report in November 1954 entitled "The IBM Mathematical FORMULA TRANslating System: Fortran".
What Will I Learn?
A. Converting temperature values to each other
B. Determine passing and staying according to the entered note
These are the topics we will learn using the necessary commands in our class. We will make sure that they are reinforced by making examples.
Requirements
A. Code Blocks Program
B. Fortran Programming Language
Difficulty
Basic
Tutorial Contents
In the Code Blocks program, using the Fortran programming language; we will convert the temperature values to each other and determine the passing and staying according to the entered note. We will do this using the necessary commands. Finally we will make examples.
Curriculum
My curriculum about other courses;
The use of small and large symbols and types and the large x symbol in the Latex program.(ENG)
Geogebra Programında Çokgen,Doğru,Doğru Parçası ve Kesiştir Komutlarının Düzlemde Kullanımı(TR)
Converting Temperature Values To Each Other
Temperature is the topic of physics. Most commonly used temperature units in the world; Celsius (° C), Fahrenheit (° F) and Kelvin (° K). The program required to calculate the others by entering the value of any one;
#include<stdio.h>
main(){
float c,f,k;
printf("Enter the Celsius temperature value:");
scanf("%f",&c);
f=1*c+32;
k=c+273;
printf("%7.2f C = %7.2f F = %7.2f K",c,f,k);
}
It shaped. We wrote this using the Fortran Programming Language. "Enter the Celsius temperature value:" we can write in one of the other temperature units instead of '' Celsius ''. Let's make an example now. For example; Let's calculate the others that correspond to a temperature value of 25 Celsius.
By entering the desired Celsius value as in the example, we can find other temperature units corresponding to it.
Entering The Note Value And Determining The Remaining
Universities have different systems that are used to pass lessons. One of them is chosen as a dam. Those who score the grade of the selected dam or above pass the course. Scoring points under the dam note remain dersten. Let's choose our passing note for this. This may vary depending on the university. Let's pick this out because it is usually 60. For this we need to write the program using the Fortran Programming language;
#include<stdio.h>
main(){
int not;
printf("Please enter your note:");
scanf("%d",¬);
if(not>=60)printf("You passed the course");
else printf("You did not pass the course");
}
It shaped. Now let's look at the situation by entering any notes. Our first example; Let's have class lesson 48.
The program tells us that 48 notes can not pass the lesson. Our second example; Let's examine the 90 note.
The program tells us that the 90-note field has passed the course. In this way, we note that we determine the passing and staying. I hope it was useful. In other lessons as you wish.
Posted on Utopian.io - Rewarding Open Source Contributors
Your contribution cannot be approved because it does not follow the Utopian Rules.
Hi, these are the reasons your tutorial was rejected
The code you provide is too trivial, and you don't explain what it does. In a tutorial it's important to explain what is happening and why. I also recommend you work on your English, as some of it is hard to understand.
You can contact us on Discord.
[utopian-moderator]
thanks @amosbastian