Due: February 6, 2012 | Points: 100 |
For this homework, please put refinements for all your programs into one file called “refinements.txt” or “refinements.pdf”, and error journal entries for all your programs into one file called “errors.txt” or “errors.pdf”.
Enter the number of cubes to sum: 10↵(The number in italics is what the user types; you are not to print it in italics, because the Python interpreter will echo it. Also, the “↵” simply indicates pressing ENTER or RETURN; you are not to print that, either.) Turn in your program in the file “sumcubesa.py”.
The sum of the first 10 cubes is 3025
You entered a negative number; you must enter a non-negative numberinstead of the second line. Turn in your program in the file “sumcubesb.py”.
You did not enter a number; you must enter a non-negative numberinstead of the second line. Turn in your program in the file “sumcubesc.py”.
Submit this program in the Extra Credit 3 area of SmartSite—not in the Homework 3 area.
(30 points) Recall the formula for
the solutions to a quadratic equation y =
ax2 + bx + c is:
ECS 10, Basic Concepts of Computing Winter Quarter 2012 |