Pascals Triangle
$10-30 USD
Paid on delivery
In this project, we want to generate a Pascal’s triangle. You can get the detailed explanation
from Wikipedia ([login to view URL]'s_triangle).
Project Specification
1. Your program will ask the user to input a positive number that will be used as the height
of triangle. Check for this condition.
2. To generate the triangle, you start from the first row, which is always 1, and the second
row which is always 1 1.
3. After the first two rows, each row at level his generated from the values at row h-1.
Note that the leftmost number and the rightmost number in any row are always 1.
Note that, in row h, there are h numbers.
4. We will use a list to represent a row. Because the triangle consists of multiple rows, we
will require another list to hold all the lists that makes the triangle rows. Thus, we will
have a list of lists.
5. You should include specifications of the function. (Preconditions and Post conditions)
6. You should also write test cases for this program.
7. You should use assert statements in your code.
8. You should test your method thoroughly.
Project ID: #8759844
About the project
Awarded to:
I have a PhD degree in computer science and excellent Python skills. I've done many similar assignments. Please see reviews on my profile. It would be my pleasure to do your project.
4 freelancers are bidding on average $24 for this job
I have worked a lot with Python before. If given a opportunity I will provide you the code in two days
Hi, I have been working in Python for more than one year. This is a simple task and I believe, with my experience, it will be done in a specified time span. I will devote myself fully and I am able to start immediately More