Saturday
November 22, 2014

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

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

Computer - Programming - Please how can I use WATFOR 77 software to code and run...
Computer - Programming - Please waht are meaning of the following functions when...
MATH - WRITE A SIMPLE BUT A COMPLETE FORTRAN PROGRAM TO COMPUTE THE AVERAGE OF ...
Programming - Write a pseudocode for the following scenario. You are to continue...
Computer Programming - Java Programming Question: basically want to keep the ...
Programming - Read two numbers from the keyboard Display the menu options as ...
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...
computer programming - Develop a menu-driven program that inputs two numbers and...
Programming - Here is the question that I need help to write the code for the ...

Search
Members