Computer Science homework help

Computer Science homework help

CSC101 Introduction to Computer Science Saint Martin’s University Professor: Teresa Escrig Module 1 Assignments Due September 6 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.

Optional problems: 30. Write a Python program that will accept the base and height of a triangle and compute the area. 31. Write a Python program to compute the greatest common divisor (GCD) of two positive integers. 32. Write a Python program to get the least common multiple (LCM) of two positive integers. 38. Write a Python program to solve (x + y) * (x + y). Test Data : x = 4, y = 3 Expected Output : (4 + 3) ^ 2) = 49 40. Write a Python program to compute the distance between the points (x1, y1) and (x2, y2). Go to http://www.w3resource.com/python-exercises to see the solutions to the previous problems.

 
Do you need a similar assignment done for you from scratch? Order now!
Use Discount Code "Newclient" for a 15% Discount!