MATH

WRITE A SIMPLE BUT A COMPLETE FORTRAN PROGRAM TO CALCULATE THE AREA OF A TRIANGLE

  1. 👍 0
  2. 👎 0
  3. 👁 216
  1. Indicate your specific subject in the "School Subject" box, so those with expertise in the area will respond to the question.

    Second, please do not use all capitals. Online it is like SHOUTING. Not only is it rude, but it is harder to understand. Thank you.

    1. 👍 0
    2. 👎 0
  2. It would be something like this:

    WRITE(6,*)'INPUT Base and Height='
    READ(5,*)B,H
    AREA=B*H/2.0
    WRITE(6,*)'AREA OF TRIANGLE IS ',AREA
    STOP
    END

    Most (old) compilers would require the first 6 characters to be blank in the above program.

    STOP is for execution time termination.
    END is for compiler to know that this is the end of the subroutine, function or main program.

    You can do the other program(s) in a similar way.

    1. 👍 0
    2. 👎 0
  3. @psydag, sorry for shouting

    @mathmate, thanks for the solution

    thank you

    edwin

    1. 👍 0
    2. 👎 0

Respond to this Question

First Name

Your Response

Similar Questions

  1. gtuc

    1. WRITE A PROGRAM TO CALCULATRE THE AREA OF A RECTANGLE OF LENGTH =5 CM AND BREADTH=8CM. 2. CALCULATE THE PRICE OF AN ITEM COSTING 100 GHANA CEDIS AFTER A DISCOUNT OF 10% IS APPLIED TO IT. 3. WRITE A PROGRAM TO CALCULATE THE

    asked by jojo on February 26, 2016
  2. math

    The figure below is not drawn to scale. The ratio of the triangle ABC to the area of triangle DEC to the area of the triangle FGH is 7:5:3. If 20% of the area of triangle DEC is shaded, what percentage of the figure is unshaded?

    asked by Emilyyyyyyyyyyy on May 5, 2016
  3. math

    The figure below is not drawn to scale. The ratio of the area of triangle ABC to the area of triangle DEC to the area of triangle FGH is 7 : 5 :3. If 20% of the area of triangle DEC is shaded, what percentage of the figure is

    asked by lillyyy on July 31, 2018
  4. 7th grade accelerated math / pre algebra

    write two equivalent expressions for the area of the figure the figure is a triangle inside the triangle it says x + 4 and the #16 is written along the length of one side of the triangle. The answer is 8(x +4) and 8x + 32 but I

    asked by Ardine on November 12, 2013
  1. trigonometry

    given triangle ABC with AB=7cm, BC=8cm and AC=9cm calculate 1. the size of the largest angle 2. the area of the triangle

    asked by lindsay on April 21, 2012
  2. VISUAL BASIC PROGRAMMING

    3. WRITE A VISUAL BASIC PROGRAM TO CALCULATE THE SIMPLE INTEREST ON A LOAN AMONUT OF 50000 GHANA CEDIS AT AN INTEREST RATE OF 30% FOR A NUMBER OF YEARS WHICH WILL BE SPECIFIED BY THE USER.

    asked by JAMES on April 2, 2016
  3. Visual Basic 2008 Programming

    Help! I'm not sure how to start or how calculate. This is the project. Using For Next Loops. - When $1000 is deposited at 5 percent simple interest, the amount grows by $50 each year. When money is invented at 5 percent compound

    asked by Lee on November 16, 2010
  4. 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

    asked by EDWIN on June 15, 2011
  1. Programming

    Write a pseudocode program that asks the user for an integer between 1 and 12. The program is to calculate the times table for that number. So for example, if the user enters a 2, then the program has to calculate 2x1 and display

    asked by Darlene on August 17, 2011
  2. algebra

    The points (1,2), (5,5),(1,6) are the vertices of a shaded triangle. a. Write a system of linear inequalities represented by the shaded triangle. b. Find the area of the triangle.

    asked by Caden on January 9, 2019
  3. Math

    An equilateral triangle s divided into 4 congruent equilateral triangles. What method can be used to find the area of the larger equilaterl triangle give the area of one of the smaller triangles? F. Multiply the area of the larger

    asked by Danny on December 7, 2010
  4. Java Programming

    Question : Write a java program to find circumference and area of a circle. Your program should be fulfill following requirements.  Radius of the circle should be read in the main method of the program  Circumference and

    asked by Arya on November 10, 2019

You can view more similar questions or ask a new question.