Question

In: Computer Science

develop pesudocode and draw flow chart for : the area of a triangle when the height...

develop pesudocode and draw flow chart for :

the area of a triangle when the height h takes value between 0.5 and 3. the area of triangle is A=h(base/2)

Solutions

Expert Solution

Solution for the problem is provided below, please comment if any doubts:

Pseudo Code:

Begin

     Numeric A, base, h

     Display(‘Enter the base’)

     base=input()

     Display(‘Enter the value of h (between 0.5 and 3)’)

     h = input()

     if(h > 0.5 AND h<3)

          //compute area

          A=h*(base/2)

          Display(A)

     Else

          //display error

          Display(‘Invalid value of h’)

End

Flow Chart:


Related Solutions

Draw a flow chart of the steps that would be employed by a neutrophil to eliminate...
Draw a flow chart of the steps that would be employed by a neutrophil to eliminate a bacterial cell. Assume that no antibodies are present that recognize the bacteria as foreign.
On unlined paper, draw a flow chart or similar map that traces the blood flow through...
On unlined paper, draw a flow chart or similar map that traces the blood flow through the circulatory system.   Use the vessels from your circulation lab and heart lab. You should include the chambers of the heart and all of the vessels on your lists. Use arrows to indicate the direction of blood flow. Use two different colored pens or pencils to indication oxygenated vs. deoxygenated blood. Label all the vessels and be sure to include an a. for artery...
Find the maximum area of a rectangle inscribed in a triangle of area A.(NOTE: the triangle...
Find the maximum area of a rectangle inscribed in a triangle of area A.(NOTE: the triangle need not necessarily be a right angled triangle).
write the PsuedoCode and the flow chart of the following: 1. draw a deck of cards...
write the PsuedoCode and the flow chart of the following: 1. draw a deck of cards from a standard deck of 52 cards until the queen of hearts is draw. how many cards did you draw?
Draw the flow chart of the extra neutral ethyl alcohol to be produced for use in...
Draw the flow chart of the extra neutral ethyl alcohol to be produced for use in the production of acetic acid, detailing the pretreatments to be applied on the raw material you choose. Process the feed, product, by-product and waste lines entering and leaving the boxes and the elements they contain. Show the processes where by-products and wastes are processed on the flow chart. In the box-laying, enter the process name and the list of equipment to be used for...
Draw a Flow chart and write a C++ program to solve the quadratic equation ax^2 +...
Draw a Flow chart and write a C++ program to solve the quadratic equation ax^2 + bx + c = 0 where coefficient a is not equal to 0. The equation has two real roots if its discriminator d = b2 – 4ac is greater or equal to zero. The program gets the three coefficients a, b, and c, computes and displays the two real roots (if any). It first gets and tests a value for the coefficient a. if...
/* calculating area of a circle, calculating area of a rectangle, calculating area of a triangle,...
/* calculating area of a circle, calculating area of a rectangle, calculating area of a triangle, and quit. */ import java.util.Scanner; public class GeoCalculator {    public static void main(String arg[]) { int geoCalc; //number selection of user Scanner get = new Scanner(System.in); //display section. System.out.println("Geometry Calculator"); System.out.println("Please select from the following menu:"); System.out.println("1. Calculate the Area of a Cirlce."); System.out.println("2. Calculate the Area of a Rectangle."); System.out.println("3. Calculate the Area of a Triangle."); System.out.println("4. QUIT"); System.out.println("Please make a selection:...
Find the height of equilateral triangle if side is = 10in
Find the height of equilateral triangle if side is = 10in
A flow chart for this: Describe the various stages that a neuron goes through when it...
A flow chart for this: Describe the various stages that a neuron goes through when it receives excitatory neurotransmitters, and when it receives inhibitory neurotransmitters. You should be able to use the following terms accurately in your description: polarized, resting potential, action potential threshold, depolarize, repolarize, hyperpolarize, absolute refractory period, and relative refractory period.
It is desired to develop a means chart and a range chart for a process that...
It is desired to develop a means chart and a range chart for a process that puts a cola drink into bottles.  The nominal goal is to put 16 oz. into each bottle.  The data were obtained from 25 of size 4 A. Construct means and range charge obtained information and 3-sigma limits. B. Then graph the data on the chart.  Identify any samples that indicate the process is out of control. Pop into Bottles Problem Sample number Item 1 Item 2 Item...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT