Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For this assignment you will need to write and submit two java programs: Playing

ID: 3938564 • Letter: F

Question

For this assignment you will need to write and submit two java programs: PlayingCard - The UML diagram for this class is displayed below. The PlayingCard class will be a java program for representing an individual playing card from a deck of cards. For example, the jack of spades represents one instance of a PlayingCard with suit = Spades and value = Jack. PlayingCardTester - Much like the Student and Student_Tester classes looked at in class today. This class will be the one we execute(ie. contains the main method we execute). It will create instances of PlayingCard objects, calls methods on the PlayingCard class, and finally output each PlayingCard's content through calls to its toString() method. The PlayingCardTester must do the following at a minimum: Creates 3 separate instances of PlayingCard objects Calls the setSuit and setValue method for each of the 3 PlayingCards or uses an over loaded constructor for populating the suit and value attributes. Outputs the variable values for each of the 3 PlayingCards (ie. Calls the toString() method for each PlayingCard). Calls and outputs the results of calling a given PlayingCard's equals method passing it another PlayingCard. The equals method: public boolean equals(Object obj) {boolean result = false; if (obj instanceof PlayingCard) {PlayingCard objCard = (PlayingCard)obj: if (getSuit().equals(objCard.getSuit()) && getValue().equals(objCard.getValue())) {result = true:}} return result:}

Explanation / Answer

#include using namespace std; int main() { int i = 5; int data[5] = {10, 20, 30, 40, 50}; int *p = &i; // point p to the address of i. cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote