This must be your own individual work. Do not look at anyone else's solution (or even part of it), and do not let anyone else look at yours (or even part of it). You should figure out the solutions by yourself; i.e., don't ask anyone how to solve the problem, and don't seek the answer from some other source. The only way to learn how to program is to go through the problem solving and debugging processes yourself. It is fine to ask questions about Python itself, however.
Function Name | Specification |
---|---|
caloriesBurned
|
Given the number of calories burned per minute (a float), and ints indicating a starting number of minutes, an ending number of minutes and an interval of minutes, print a table of the number of calories burned after the starting minutes, after the starting number of minutes + interval minutes, etc., stopping when the next interval would be greater than the ending number of minutes. E.g. caloriesBurned(3.9,10,33,5) would print 10, 39.00; 15, 58.50; 20, 78.00; 25, 97.50; 30, 117.00. However, Your output should be formatted as a nice table with headers. Use your judgement about how to format the table. (Section 2.8 pp. 65-73 gives details about printing and formatting. Hint: the \t character may be useful.)''' |
displayWedge
|
Given a number of lines, numLines, and a character c, draw the following pattern, where the
top-most line has numLines c's, and the bottom line has one c (in
this example, numLines is 7 and c is *) (hint: reading Chapter 5
will help!). If the character c is not specified, then by default
it should be *
******* ****** ***** **** *** ** * |
displayLadder
|
Given a number of lines, numLines, and a character c, draw the following pattern. In the example, numLines is 6 and c is #. If the character c is not specified, then by default it should be * Click here for the pattern. |
multiplicationTable
|
Given an int, dim, display a dim x dim multiplication table. |
These are the aspects of your work that we will focus on in the grading:
Correctness (75%): Your functions and your main program should perform as specified.
Formatting style (10%): Make sure that you read the style rules page for some general rules and guidelines about formatting your code.
Programming style (10%): Your variables names should be meaningful and your code as simple, non-redundant, and clear as possible.
Appropriate Test cases (5%): You should test general cases as well as specific cases.