Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This exercise is to be completed individually during class time. Students are allowed to discuss the exercise and provide assistance to one another but each
This exercise is to be completed individually during class time. 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 repositorys
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 level review
CreditNecessary Information
Credit is awarded based upon the matrix of tasks below. Marks will be deducted for
overwriting the master repository or otherwise mismanaging the code.
When students edit another authors code, they are expected to add
themselves as a modifier in the classlevel Javadoc and then add the date
modified.
ICE REPOSITORY URL FOR THIS SECTION: INDIVIDUAL INSTRUCTORS MUST FILL IN
THIS INFO FOR THEIR SECTION
TASK
Clone the ICE repository listed above to a NetBeans project
Create a new local Branch called FIRSTNAMELASTNAMEICE to
complete the remainder of ICE Note that you should not push
changes to the remote master repository, only to your new
remote branch which you will push up to GitHub.
Complete the CardTrick class so that it models a hand of seven cards
as an array or other suitable data structure which is filled with random
cards you will have to create an algorithm that chooses random number
TASK
values and random suits from the suits array, this is started for you
Remember to add your name as a modifier and your student number
in the header comment
Make the CardTrick class then ask the user to pick a card any card
and then search the array for the card, and report whether the users
card is in the magic hand of random cards. There are no special points
here for efficiency beyond a Java level.
Push your new branch to the remote repository and login to the
remote on GitHub to check that your branch was pushed.
Edit your code from GitHub to add a hardcoded Card Object
called luckyCard with a card number and suit of your choosing.
Safely merge the code into your NetBeans project, replacing the code
that was asking the user to create a card with your new hardcoded
luckyCard Object. The code should now search the randomly generated
array of cards for the hardcoded lucky card. If it is there, report a
wining message to the user. Otherwise, report a losing message.
Once your merged code is working as above, commit and push your
final branch changes to the remote repository in your own
branch only. Do not merge with the master.
I will check the GitHub history to award full credit for the editmerge and
Git history doesnt lie!
Suggested Rubric:
Item Value
CardTrick Class is completed as requested and is functionally
correct
Student information has been added as modifier comment
New branch correctly created, named and pushed to GitHub
Deduction for interfering with the class main branch
Total
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started