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
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.