Question: Write pseudocode for an algorithm that (1) asks the user to input the base and height of a triangle in meters, (2) computes the triangles

Write pseudocode for an algorithm that

(1) asks the user to input the base and height of a triangle in meters,

(2) computes the triangle’s area, and

(3) prints the triangle’s area. Use the following sample session.

Sample session: Enter the base of the triangle in meters: 8 Enter the height of the triangle in meters: 6 The

Sample session: Enter the base of the triangle in meters: 8 Enter the height of the triangle in meters: 6 The area of the triangle is 24 square meters. The italics signify user input.

Step by Step Solution

3.46 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Based on the sample session youve provided here is the pseudocode ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction To Programming With Java A Problem Solving Approach Questions!