Answered step by step
Verified Expert Solution
Link Copied!

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 1 level (review).
Credit/Necessary 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 class-level Javadoc and then add the date
modified.
ICE 1 REPOSITORY URL FOR THIS SECTION: [INDIVIDUAL INSTRUCTORS MUST FILL IN
THIS INFO FOR THEIR SECTION]
TASK
1. Clone the ICE 1 repository listed above to a NetBeans project
2. Create a new local Branch called FIRSTNAME_LASTNAME_ICE1 to
complete the remainder of ICE 1. 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.
3. 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***
4. 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 1 level.
5. Push your new branch to the remote repository and login to the
remote on GitHub to check that your branch was pushed.
6. Edit your code from GitHub to add a (hard-coded) Card Object
called luckyCard with a card number and suit of your choosing.
7. Safely merge the code into your NetBeans project, replacing the code
that was asking the user to create a card with your new (hard-coded)
luckyCard Object. The code should now search the randomly generated
array of 7 cards for the hard-coded lucky card. If it is there, report a
wining message to the user. Otherwise, report a losing message.
8. 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 edit/merge (and
Git history doesnt lie!)****
Suggested Rubric:
Item Value
CardTrick Class is completed as requested and is functionally
correct
3
Student information has been added as modifier comment 2
New branch correctly created, named and pushed to GitHub 5
Deduction for interfering with the class main branch -5
Total /10

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions