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...
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...
Write a Fortran program that is able to read in the data file. The file has...
Write a Fortran program that is able to read in the data file. The file has lines with the structure: 19990122 88888 30.5 Where: i) the first is an 8 digit code with the date: yyyymmdd (yyyy is the year, mm is the month, and dd is the day) ii) the second is the five digit odometer reading of a car iii) the third is the amount of fuel put into the car on that date to fill the tank...
Problem 2 [6pt] In early implementations of Fortran language, a compiler may choose to use static...
Problem 2 [6pt] In early implementations of Fortran language, a compiler may choose to use static allocation (i.e., allocation in the static area) for local variables and parameters, effectively arranging for the variables of different invocations to share the same locations, and thereby avoiding any run-time overhead for creation and destruction of stack frames. However, such implementation changes the meaning of recursive function calls. Write down a simple example and explain how its meaning changes under the “Fortran” semantics as...
Using the programing language of Verilog I attempted to make a counter to count from 0...
Using the programing language of Verilog I attempted to make a counter to count from 0 to 9 then loop back to 0 using the internal clock of the FPGA cyclone IV from altera. the code is posted at the bottom I get the following errors Error (10663): Verilog HDL Port Connection error at Encryption.v(9): output or inout port "clk" must be connected to a structural net expression Error (10285): Verilog HDL Module Instantiation error at Encryption.v(9): instance "" specifies...
Write a FORTRAN program to simulate the daily activity at a gas station. Assuming that one...
Write a FORTRAN program to simulate the daily activity at a gas station. Assuming that one customer is served every six minutes, what is the average waiting time per customer?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT