Question: use python README.md # Statement 1 2 3 Write a program that prompts the user for the length of the base and the height (both


use pythonREADME.md # Statement 1 2 3 Write a program that prompts the user for the length of the base and the height (both integers) of a right-angled triangle, inputs the values, and prints the area. Every number is entered on a separate line. The area of a right-angled traiange is equal to half the product of its base and height. 5 Examples of inputs and correct outputs are provided below. LON 7. 8 ### Example 1 input - 87 59 output 10 11 12 13 14 15 16 17 18 The area is 2566.5 ### Example 2 innut 19 README.md # Statement 1 2 3 Preview Write a program that prompts the integer number and prints its previous and next numbers. 4 5 Examples of inputs and correct outputs are provided below 6 ### Example 1 input 8 9 10 59 11 output - 12 13 14 The previous number is 58 and the next number is 60 15 16 17 18 19 20 ### Example 2 input 36 NININ 21 22 output README.md 1 # Statement 2 3 Write a program that prompts the user for the weight (integer, in pounds) followed by the height (integer, in inches) and prints their Body Mass Index (BMI). Every number is entered on a separate line. The BMI is equal to 703 x weight / (height squared). 4 5 Examples of inputs and correct outputs are provided below. 7 ### Example 1 input- 9 I 165 63 output - 10 11 12 13 14 15 16 17 18 19 20 The BMI is 29.225245653817083 ### Example 2 input - 1-input-output/08/h5... Run README.md 1 # Statement 2 3 Write a program that asks the user for the initial velocity of an object, followed by its acceleration, followed by the time elapsed (all integers), and prints its *displacement*. Every number is entered on a separate line. The *displacement* is given by the following formula - 4 5 displacement = initial velocity x time + 0.5 x acceleration x (time squared) 6 7 Examples of inputs and correct outputs are provided below. 8 9 ### Example 1 input 10 11 12 13 14 15 32 -42 30 16 output 17 18 The displacement is -1 7949.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
