Question: Your source code should compile. Do not change the names of the source files or the classes within those source files as that may cause
- Your source code should compile. Do not change the names of the source files or the classes within those source files as that may cause your code not to compile resulting in a loss of points.
- You should have multiple Java classes each with their own source file (.java file). Only one of the classes should contain a main method.
- Your program must meets specifications of the problem. (Dont solve a different problem than what was asked.)
- Your program should follow appropriate Java programming style so that it is humanly readable.
- Names (Identifiers) adhere to Java programming conventions.
- Variables and constants have meaningful names and the appropriate data types.
- These programs are larger and will take more time than you spent in previous weeks, so you are being given additional time to complete. Be sure to start early on these and spend enough time with the concepts so that you understand it. You will need to test each part of your program so that it produces correct results.
- All computations made by the program must be correct.
- Program test runs must be included in your submission.
This assignment is to write a Complex class for defining complex numbers. Complex numbers in math involve two parts called real and imaginary. Both parts of a complex number will be of type double in your class. You should also have a Test class with a main method to test your Complex class and its methods.There are two parts to this project. You must have everything the book specifies for Part 1. For Part 2, you may do what is specified there, or you may do Alternate Part 2. Do not do both Part 2 and Alternate Part 2 as you may experience problems, and I will only grade one any way.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
