1. Create a class to represent complex numbers. Provide a constructor like Complex(double realPart, double imaginaryPart). Provide methods for adding, subtracting, and multiplying two complex numbers. Provide an appropriate toString() method so that a complex number is printed like 1.5 + 2.2i. Write a driver program to test your Complex class. Your driver program should ask for the real and imaginary parts of two complex numbers, and the desired operation on them, and should print out the result. Now you have a complex numbers calculator. (Hint: imitate the Change codes below)
2. Here are the classes for making change Change.java ChangeThis.java ChangeTest.java ChangeThisTest.java and ChangeTest2.java.
Modify the class Change so that it includes nickles also. Modify the toString() method to reflect this addition. Also, refine toString() so that if there is only 1 dime, for example, it returns 1 dime, not 1 dimes. In the ChangeTest driver program include several other amounts of owed and paid to test your modifications.
3. Here are the necessary programs for a Deck of Cards: Card.java Deck.java CardTest.java DeckTest.java DeckTest2.java
Write a driver program that shuffles a deck and deals three cards from the deck, and prints out the card with the smallest face value. (Hint: Modify DeckTest2.java)