Question: This exercise is to be completed individually. Students are allowed to discuss the exercise and provide assistance to one another but each student is responsible

 This exercise is to be completed individually. Students are allowed to
discuss the exercise and provide assistance to one another but each student
is responsible for their own final product. Students should have registered their
Git credentials with the instructor prior to beginning. Keep in mind that
this is a public repository and anything you commit will become part
of the repository's history and will be viewable by the public. Overview
This Exercise will allow students to demonstrate that they can perform basic
source code management tasks independently including cloning, editing, pulling, merging, committing and

This exercise is to be completed individually. Students are allowed to discuss the exercise and provide assistance to one another but each student is responsible for their own final product. Students should have registered their Git credentials with the instructor prior to beginning. Keep in mind that this is a public repository and anything you commit will become part of the repository's history and will be viewable by the public. Overview This Exercise will allow students to demonstrate that they can perform basic source code management tasks independently including cloning, editing, pulling, merging, committing and pushing code. The exercise will also test basic Java coding skills at the Java 1 level (review). Credit/Necessary Information Credit is awarded based upon the tasks below. Marks will be deducted for overwriting the master repository or otherwise mismanaging the code. When you edit another author's code, you are expected to add yobrself as an author in the class-level Javadoc and also add the date modified. REPOSITORY URL FORTHIS SECTION: hitps://github.com/ProfMPsyst/18401_ICE1.git TASK 4. Make the Sardrick class then ask the user to pick a card (-any card") and then search the array for the card, and report whether the user's card is in. the hand of random cards. If it is, invoke the priatinfoll method. There are no special points here for efficiency beyond a Java 1 level. This is something we can refectorlater! (hint: you might want to print out the generated cards while you ore debugging to be able to pick a generated one, just make sure to comment out that code betore pushing your branch up) 4. Make the Cardirick class then ask the user to pick a card ("any card") and then search the array for the card, and report whether the user's card is in the hand of random cards. If it is, invoke the priatiatel) method. There are no special points here for efficiency beyond a Java 1 level. This is something we can refactor later! (hint: you might want to print out the generated cards while you are debugging to be able to pick a generated one, just make sure to comment out that code before pushing your branch up) 5. Push your new branch to the remote repository and login to the remote on GitHub to check that your branch was pushed. f * A class that fills a hand of 7 cards with random Card objects and then asks the user to pick a card. * It then searches the array of cards for the match to the user's card. * To be used as starting code in Exercise * eauthor dancye * Aauthor Paul Bonenfant Jan 25, 2022 / public class CardTrick \{ public static void main (string[] args) 1 Card [] hand = new Card [7]; Card card = new card(); //card. setvalue (insert call to random number generator here) /1 / /card. setsuit (Card. SUITglinsert cal1 to random number between 03 here]) (1) Hint: You can use Random random. nextInt (n) to get a random number between 0 and n1 (inclusive) I/ Don't worry about duplicates at this point // Hint: You can use Random random.nextInt (n) to get a random number between 0 and n1 (inclusive) 1. If Don't worry about duplicates at this point 1/ insert code to ask the user for Card value and suit, create their card 1/ and search the hand here. // Hint: You can ask for values 1 to 10 , and then II 11 for jack, 12 for queen, etc. (remember arrays are 0 -based though) Il 1 for Hearts, 2 for Diamonds, etc. (remember arrays are 0-based though) 11 11 Then loop through the cards in the array to see if there's a match. 1/ If the guess is successful, invoke the printinfo() method below. 1 1 * A simple method to print out personal information. Follow instructions to * replace this information with your own. * Gauthor Paul Bonenfant Jan 2022 it private static void printinfo() ( * Cauthor Paul Bonenfant Jan 2022 *) private static void printinfo() \{ system.out.println("Congratulations, you guessed right!"); system.out.println(); System. out.println ("My name is Paul, but you can call me prof, Paul or sir"); system.out.println(); system.out.println("My career ambitions:"); system.out.println("-- Be more active on Iinkedin"); system.out.println("-- Have a semester with no violations of academic integrity!"); system.out.println(); System.out.println ("My hobbies:"); System.out. println ("-- Investing"); system. out.println("-- Cooking"); System. out. println("-- Reading/Watching TV"); system.out.println ("-- Riding my motorcycle"); gystem.out.println(); * A class that models playing card objects. Cards have * a value (note that Ace =1, Jack =11, Queen =12, King =13 ) * A suit (clubs, hearts, spades, diamonds). * There are 52 cards in a deck, no jokers. * This code is to be used in ICE1. When you create your own branch, * add your name as a modifier. * Bauthor dancye * eauthor Paul Bonenfant May 2020 1 public class card \& private string suit; //clubs, spades, diamonds, hearts private int value; //1-13 public static final string [] SUIrs = f"Hearts", "Diamonds", "Spades", "clubs"); * oreturn the suit / public string getsuit() 1 return suit; 1 12+ 4 aparam suit the suit to set +I

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!