Write a python program that will accept the base and height


Write Python code to solve the following problem:

1. Write a Python program that prompts the user for his/her amount of money, then reports how many Nintendo Wiis the person can afford, and how much more money he/she will need to afford an additional Wii.

2. Write a Python program that will accept the base and height of a triangle and compute the area.

3. Write a Python program to compute the greatest common divisor (GCD) of two positive integers.

4. Write a Python program to get the least common multiple (LCM) of two positive integers.

5. Write a Python program to solve (x + y) * (x + y).

Test Data : x = 4, y = 3
Expected Output : (4 + 3) ^ 2) = 49

6. Write a Python program to compute the distance between the points (x1, y1) and (x2, y2).

Solution Preview :

Prepared by a verified Expert
Python Programming: Write a python program that will accept the base and height
Reference No:- TGS01582611

Now Priced at $30 (50% Discount)

Recommended (99%)

Rated (4.3/5)