Ex38ec_Problem Statement
Ex38ec_Problem Statement
PROBLEM STATEMENT
This problem builds on top of Exercise 38, in which you were asked to
write code to draw an hourglass. Note that there are different ways to
think about the figure (see below), and they are all legal.
There also different ways of writing the code, all of which are acceptable
for this task:
(1)Using nested for loops
(2)Using a for loop and string multiplication
(3)Using only string multiplication
So, taking as your starting point the work you did for Exercise 38, enhance
your program in the following ways:
GRADING
The grading will be out of 1 (1% of your course grade) and will take into
consideration all of the program evaluation criteria:
1. Effectiveness (0.4 pts): The algorithm gets the job done correctly.
2. User interaction (0.2 pts): The user is treated well.
a. Clarity: They are given information about what they are
expected to enter and provided output in a nice to read and
clear fashion.
b. Politeness: They are greeted appropriately on entry and exit.
3. Elegance (0.3 pts): This is a matter of design, under which I
included readability and modifiability. Make sure you use
whitespace and comments appropriately and breakdown your
program into appropriate functions.
4. Efficiency (0.1 pts): The algorithm gets the job done correctly and
using a minimum of resources. Here just avoid repeated
computations.