Question

In: Computer Science

Paste this codes to the FORTRAN programing language, and fix it as a working program. Run...

Paste this codes to the FORTRAN programing language, and fix it as a working program. Run it at the PLATO and find the outputs.

write(*,"(i3)") 20
write(*,"(spi3)") 20
write(*,"(2i4)") -654, 56, 0, -78, 54
write(*,"(f12.5)") 100.5
write(*,"(e12.5)") 100.5
write(*,"(es12.5)") 100.5
write(*,"(b12.5)") 100
write(*,"(o12.5)") 100
write(*,"(z12.5)") 100
write(*,"(l5)") .true.
write(*,"(a10)") "Deneme", "Deneme_2"
write(*,"(a10,a4)") "Deneme", "Deneme_2"
write(*,"(a10,1x,i3)") "Sonuç =", 6
write(*,"(/,1x,a,/)") "Hoşgeldiniz!"
write(*,"(t5,a)") "Erdem Ersoy"
write(*,"(g4.2)") "Deneme"
write(*,"(g8.3,g5.2)") 34.56, -239
write(*,"(1x,'Erdem',1x,a)") "Ersoy"
write(*,"(1x,""Erdem"",1x,a)") "Ersoy"

Solutions

Expert Solution

You program is not working because the fortran needs to be ended with the end statement , if you dont write the "end" statement at the of the program , than your program is not syntactically correct, so we just need to add the "end" statement in the program.

write(*,"(i3)") 20
write(*,"(spi3)") 20
write(*,"(2i4)") -654, 56, 0, -78, 54
write(*,"(f12.5)") 100.5
write(*,"(e12.5)") 100.5
write(*,"(es12.5)") 100.5
write(*,"(b12.5)") 100
write(*,"(o12.5)") 100
write(*,"(z12.5)") 100
write(*,"(l5)") .true.
write(*,"(a10)") "Deneme", "Deneme_2"
write(*,"(a10,a4)") "Deneme", "Deneme_2"
write(*,"(a10,1x,i3)") "Sonuç =", 6
write(*,"(/,1x,a,/)") "Hoşgeldiniz!"
write(*,"(t5,a)") "Erdem Ersoy"
write(*,"(g4.2)") "Deneme"
write(*,"(g8.3,g5.2)") 34.56, -239
write(*,"(1x,'Erdem',1x,a)") "Ersoy"
write(*,"(1x,""Erdem"",1x,a)") "Ersoy"
end


Related Solutions

in C++ programing language Write a program that prompts the user for an integer, then prints...
in C++ programing language Write a program that prompts the user for an integer, then prints all of the numbers from one to that integer, separated by spaces. Use a loop to print the numbers. But for multiples of three, print "Fizz" instead of the number, and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz". Drop to a new line after printing each 20 numbers. If the user typed...
c programing language When a new program is executed, a new process is created with the...
c programing language When a new program is executed, a new process is created with the next available process ID. However, there are a few special processes that always have the same process ID, which are usually given the ID value less than 5 these are called system processes. Can you identify which of the two system processes have the process ID of 0 and 1 respectively?
Programing Language: Java The Problem: You are writing a program that encrypts or decrypts messages using...
Programing Language: Java The Problem: You are writing a program that encrypts or decrypts messages using a simple substitution cipher. Your program will use two constant strings. One will represent the code for encryption: going from the original message (called the plaintext) to the encrypted version of the message. The other will be “abcdefghijklmnopqrstuvwxyz” (the lowercase alphabet. Your program will ask the user whether they want to 1) encrypt a message, 2) decrypt a message, or 3) quit. If they...
I need this program in  Paython programing language wants to maintain a list of quiz Questions, refer...
I need this program in  Paython programing language wants to maintain a list of quiz Questions, refer to as their Question Pool, in an external data file. Each Question should have the question text, point value, four answer choices, and the correct answer stored. Since they want to keep it fun, each question should also store witty retorts given as Feedback text to the user along with the answer. The application should have a Graphical User Interface (GUI), which allows the...
Create Lab project Add the following codes to your main method. Compile and run the program...
Create Lab project Add the following codes to your main method. Compile and run the program with some arguments and observe the output.       printf("You have entered %d arguments.\n", argc);       for (int i = 0; i < argc; ++i)         printf( "argument %d: %s\n",i+1,argv[i]); Create a function called simpleFileWrite() and add the following feature: Open a write only file called “myfile.txt” and write characters into it. The set of characters are read form the keyboard until cntrl-z is entered. (use...
Write a FORTRAN program that computes the average of a collection of numbers and then outputs...
Write a FORTRAN program that computes the average of a collection of numbers and then outputs the total number of values that are greater than the average. An A grade is any score that is at least 20% greater than the average. The B grade is any score that is not an A, but is at least 10% greater than the average. An F grade is any score that is at least 20% less than the average. The D grade...
write a Fortran 77 language code for the vortex tube used in mining with its exergy...
write a Fortran 77 language code for the vortex tube used in mining with its exergy and anergy analysis using r407c refrigerant
programing language JAVA: Design and implement an application that reads a sentence from the user, then...
programing language JAVA: Design and implement an application that reads a sentence from the user, then counts all the vowels(a, e, i, o, u) in the entire sentence, and prints the number of vowels in the sentence. vowels may be upercase
IN ASSEMLY LANGUAGE MASM! please show output run. Write a program that ask the user to...
IN ASSEMLY LANGUAGE MASM! please show output run. Write a program that ask the user to write a string and reverse a string using indirect addressing (may not use the stack - push/pop). The string will be given by the user and be up to 64 characters long. INCLUDE Irvine32.inc INCLUDE macros.inc MAX = 64 .data source BYTE MAX DUP('#'),0 destination BYTE LENGTHOF source DUP('*'),0 actual_length DWORD ? ask BYTE "Enter a String: ",0 .code main proc ; ask user...
Fix the following codes in JAVA so they can work : public class GeometricObject { private...
Fix the following codes in JAVA so they can work : public class GeometricObject { private String color = "white"; private boolean filled; private java.util.Date dateCreated; public GeometricObject1() { dateCreated = new java.util.Date(); } public GeometricObject1(String Color, boolean filled) { dateCreated = new java.util.Date(); this.color = color; this.filled = filled; } public String getColor() { return color; } public void setColor(String color) { this.color = color; } public boolean isFilled() { return filled; } public void setFilled(boolean filled) { this.filled...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT