Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Order the following statements that form the pseudo - code for calculating the a

ID: 3589567 • Letter: O

Question

Order the following statements that form the pseudo - code for calculating the area of an isosceles trapezoid given the lengths of its two bases b and B and the height of the trapezoid h .

Assume that a message to input any values is displayed before the values are read into the program.

Use [ 1 ] for the first statement or step, [ 2 ] for the second statement or step, etc

A) Print " please enter the lengths of the bases and the height "

B)End Program Trapezoid

C)End Program Trapezoid

D)A = (1 / 2) * h * ( b + B )

E)Read b , B , h

F)Start Program Trapezoid

Explanation / Answer

The simple program structure can only be start, input, process, display, stop. so,

The given statement can be rearranged as :

1. F) Start Program Trapezoid

2. A) Print "please enter the length of the bases and the height"

3. E) Read b, B, h

4. D) A= (1/2)*h*(b+B)

5. B) End Program Trapezoid

note: option B & C are same statements

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote