QUIZ6-comp9021代写
时间:2023-10-31
QUIZ 6
COMP9021 PRINCIPLES OF PROGRAMMING
$ python3 quiz_6.py
Enter three integers, the second and third ones being strictly positive: 0 2 4
Here is the grid that has been generated:
-----------
| * * * |
| * * * * |
| * * |
| * |
-----------
Here are the rhombuses that are not included in any other:
$ python3 quiz_6.py
Enter three integers, the second and third ones being strictly positive: 0 3 4
Here is the grid that has been generated:
-----------
| * * * |
| * * * * |
| * * * |
| * * |
-----------
Here are the rhombuses that are not included in any other:
Of size 1:
- with top vertex at location (0, 1)
$ python3 quiz_6.py
Enter three integers, the second and third ones being strictly positive: 0 3 6
Here is the grid that has been generated:
---------------
| * * * * * |
| * * * * * |
| * * * |
| * * * * * |
| * * * * |
| * * * * * |
---------------
Here are the rhombuses that are not included in any other:
Of size 1:
- with top vertex at location (1, 1)
- with top vertex at location (3, 2)
Date: Trimester 3, 2023.
2 COMP9021 PRINCIPLES OF PROGRAMMING
$ python3 quiz_6.py
Enter three integers, the second and third ones being strictly positive: 0 4 7
Here is the grid that has been generated:
-----------------
| * * * * * * |
| * * * * * * |
| * * * * * |
| * * * * * * |
| * * * |
| * * * * * * |
| * * * * |
-----------------
Here are the rhombuses that are not included in any other:
Of size 1:
- with top vertex at location (0, 1)
- with top vertex at location (1, 1)
- with top vertex at location (3, 5)
Of size 2:
- with top vertex at location (0, 4)
$ python3 quiz_6.py
Enter three integers, the second and third ones being strictly positive: 0 5 8
Here is the grid that has been generated:
-------------------
| * * * * * * * |
| * * * * * * * * |
| * * * * * * |
| * * * * * * |
| * * * * * * * |
| * * * * * |
| * * * * * * * |
| * * * * * |
-------------------
Here are the rhombuses that are not included in any other:
Of size 1:
- with top vertex at location (0, 1)
- with top vertex at location (0, 3)
- with top vertex at location (0, 5)
- with top vertex at location (0, 6)
- with top vertex at location (1, 2)
- with top vertex at location (5, 6)
Of size 2:
- with top vertex at location (3, 5)
Of size 3:
- with top vertex at location (0, 4)
essay、essay代写