Hello, if you have any need, please feel free to consult us, this is my wechat: wx91due
QUIZ 6 COMP9021 PRINCIPLES OF PROGRAMMING
$ python3 quiz_6.py
Input an integer, an integer greater than 0, and a number between 0 and 1: 0 1 0
Here is the grid that has been generated:
There are no stripes of width 1 in the grid!
$
$ python3 quiz_6.py
Input an integer, an integer greater than 0, and a number between 0 and 1: 0 1 1
Here is the grid that has been generated:
The size of the largest stripes of width is 10.
There is 1 stripe of that size.
Here it is:
$QUIZ 6 3
$ python3 quiz_6.py
Input an integer, an integer greater than 0, and a number between 0 and 1: 0 2 0.8
Here is the grid that has been generated:
The size of the largest stripes of width is 12.
There are 2 stripes of that size.
Here they are:
$4 COMP9021 PRINCIPLES OF PROGRAMMING
$ python3 quiz_6.py
Input an integer, an integer greater than 0, and a number between 0 and 1: 0 3 0.8
Here is the grid that has been generated:
The size of the largest stripes of width is 9.
There are 3 stripes of that size.
Here they are:
$QUIZ 6 5
$ python3 quiz_6.py
Input an integer, an integer greater than 0, and a number between 0 and 1: 0 4 0.9
Here is the grid that has been generated:
The size of the largest stripes of width is 24.
There is 1 stripe of that size.
Here it is:
$