Sunday
May 19, 2013

Homework Help: Computer - Programming

Posted by Febby-1 on Thursday, April 12, 2007 at 12:53pm.

Please do help in providing solution to this question, thanks:

Write a Fortran program that requests for three numbers from the keyboard, subtracts 48 from their sum and then divides the result by 6 before sending the output to the screen.In the input statement, let the program use the following specification for the three numbers: length is 8, decimal places are 3. The output should be unformatted.

This should be fairly straight forward.

Your program will do the following steps:

1) Ask the user to type in 3 numbers. It would be easier to have them enter them in 3 different input fields.

2) Add the numbers together to get the sum.

3) Subtract 48 from the number. Enter that amount as the new variable.

4) Divide the variable by 6 then use the Print command to show it on the screen and use those length and decimal place restrictions on it...however that is done in Fortran.

Matt

No one has answered this question yet.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

Computer - Programming - Please waht are meaning of the following functions when...
Computer - Programming - Please how can I use WATFOR 77 software to code and run...
MATH - WRITE A SIMPLE BUT A COMPLETE FORTRAN PROGRAM TO COMPUTE THE AVERAGE OF ...
computer science - write a program that prompts the user to input three numbers...
computer science - Write a program that prompts the user to input three numbers...
Programming - Write a pseudocode for the following scenario. You are to continue...
programming - Create the logic for a program that prompts a user for three ...
Programming - Here is the question that I need help to write the code for the ...
C programming, not C++ - design and implement such a function and use it in a ...
Programming - Read two numbers from the keyboard Display the menu options as ...

For Further Reading

Search
Members
Community