83.1k views
4 votes
Write pseudocode instruction to carry out each of thefollowing computational operations.

A. Determine the area of a triangle given value the base b andthe height h.
B. Compute the interest earned in 1 year given the startingaccount balance B and annual interest rate I and assuming simpleinterest, that s, no compunding. Also determine the final balanceat the end of the year.
C. Determine the flying time between two cities given themileage M between them and average speed of the airplane.

User Nate Uni
by
5.7k points

1 Answer

5 votes

Step-by-step explanation:

A. Pseudocode to determine the area of a triangle given value the base b andthe height h:-

START

INPUT b

INPUT h

COMPUTE Area = 0.5*b*h

DISPLAY Area

STOP

B. Pseudocode to compute the simple interest earned in 1 year given the starting account balance B and annual interest rate I :-

START

INPUT B

INPUT I

COMPUTE Interest = (B*I*1)/100

DISPLAY Interest

STOP

C. Pseudocode to determine the flying time between two cities given the mileage M between them and average speed of the airplane :-

START

INPUT M

INPUT S

COMPUTE Time = M/S

DISPLAY Time

STOP