3 Draw a flow chart for the following questions. a Calculate the area of a triangle given the base is 4 cm. BEGIN DECLAR
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
3 Draw a flow chart for the following questions. a Calculate the area of a triangle given the base is 4 cm. BEGIN DECLAR
questions. a Calculate the area of a triangle given the base is 4 cm. BEGIN DECLARE int base=4, height; double area GET height COMPUTE area=0.5*base*height PRINT base, height, area 4cm END b Find the momentum of the ball given the mass of the ball is 1.50 kg and the velocity is 4 m s-1. (Hint: p = mv) BEGIN DECLARE double p m. V INITIALIZEM 1.50, v = 4 CALCULATE p m*v DISPLAY P END = =
3 Draw a flow chart for the following