Computer - Programming

posted by .

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

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Computer - Programming

    Please how can I use WATFOR 77 software to code and run the following Fortran program: INTEGER SUM SUM = 0 DO 10 D = 1,7 IF (K.GT.3) THEN SUM = SUM + K ELSE SUM = SUM * K ENDIF PRINT* , SUM 10 CONTINUE END Oh My!!!! Tell me where they …
  2. Computer - Programming

    Please waht are meaning of the following functions when using Fortran i) DSIN ii) AMOD iii) IDIM iv) CABS Thanks Search on Google, each term like this: fortran idim fortran cabs fortran amod fortran DSIN
  3. Computer Programming

    Java Programming Question: basically want to keep the user in a loop that displays the menu and requests a user choice again and again until the user enters choice option 0 and exits the program. When Option 1 is chosen, I want to …
  4. C programming, not C++

    design and implement such a function and use it in a program called part3.c that allows someone to enter two real numbers and an epsilon value (also a real number) and reports if the two numbers are equal (+/- epsilon) or not. If you …
  5. MATH

    WRITE A SIMPLE BUT A COMPLETE FORTRAN PROGRAM TO COMPUTE THE AVERAGE OF SIX NUMBERS AND DISPLAY THE NUMBERS, SUM AND AVVERAGE. THE PROGRAM SHOULD TERMINATE WHEN ZERO IS ENTERED AS A NUMBER. THE PROGRAM SHOULD BE EDUCATIVE
  6. Programming

    Write a pseudocode for the following scenario. You are to continue inputting numbers which may be either positive or negetive from a keyboard until a number of zero is entered. Count the number of positive numbers entered. This sum …
  7. Programming

    Read two numbers from the keyboard Display the menu options as follows: 1 - computes the sum of two numbers. 2 - computes the difference (first minus second). 3 - computes the product of the two numbers. 4 - if the second number is …
  8. computer science programming

    Elements – sequence-series outputting Write a program that prints the following elements: 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, (hereto referred to as elements) etc., up till a user-entered value. The program should not print more than …
  9. computer programming

    Write a fortran program to compute the geometric information for a kite. The program should read the a, c and p lengths and compute the q length
  10. Java programming

    Need help here how to do this program write the definition of a method that takes as input three numbers and returns the sum of the first two numbers multiplied by the third number (Assume that the three numbers are of type double.) …

More Similar Questions