Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

QUIZ  1

COMP9021 PRINCIPLES OF PROGRAMMING

$  python3  quiz_1.py

$  python3  quiz  1  sol.py

Enter  an  integer  at  least  equal  to  3:  4

Input  the  name  of  a  file  in  the  working  directory:  sample_test_file_1.txt Here  is  your  coffee  table  of  size  4:

----

/|    /|

----

|    |

Here  are  your  two  dashes:

-  -

Here  are  your  five  stars:

*  *  *  *  *

Here  are  your  four  dashes:

-  -  -  -

$  python3  quiz_1.py

Enter  an  integer  at  least  equal  to  3:  13

Input  the  name  of  a  file  in  the  working  directory:  sample_test_file_2.txt Here  is  your  coffee  table  of  size  13:

-------------

/|                     /|

|                      |

Here  are  your  three  carets:

^  ^  ^

Here  are  your  eight  stars:

*  *  *  *  *  *  *  *

Here  are  your  five  dollars:

$  $  $  $  $

Here  are  your  eight  stars:

*  *  *  *  *  *  *  *