Object Oriented Assignment
- Due Date: Wednesday, April 5th no later than 10:00 p.m.
- Purpose: To learn how to use object oriented programming
to solve problems.
- You must complete this assignment individually.
Assignment Overview
In this assignment, you are going to use object oriented programming
to write a program that performs common operations on Complex Numbers. This
page
provides an understandable introduction to Complex Numbers.
Using complex.py as a starting point,
supply the missing ComplexNumber class such that interaction
with a user could produce this transcript.
Grading
- 10 points. No changes are made to any of the supplied functions:
printMenu, createComplexNumber and main.
- 10 points. Menu option 1 works correctly for integers and floats.
- 10 points. Menu option 2 works correctly for integers and floats.
- 10 points. Menu option 3 works correctly.
- 10 points. Menu option 4 works correctly.
- 10 points. Menu option 5 works correctly.
- 10 points. Menu option 6 works correctly.
- 10 points. The output format of the transcript is matched exactly.
- 10 points. The Python code is properly commented, easy to understand,
doesn't contain significant redundancies and uses object oriented
programming correctly.
- 10 points. Initially, both complex_number_1 and complex_number_2
have a value of 0 + 0i.
Submission
E-mail the file named complex.py
to Ryan at ryanbockmon@gmail.com by the deadline.
The title of the e-mail should be JBD, Complex Number Assignment, Your Name.
Late submissions will receive no credit, but partial credit
can be earned by making an ontime submission.