Provide details on what you need help with along with a budget and time limit. Questions are posted anonymously and can be made 100% private.
Match with a Tutor
Studypool matches you to the best tutor to help you with your question. Our tutors are highly qualified and vetted.
Get Quality Help
Your matched tutor provides personalized help according to your question details. Payment is made only after you have completed your 1-on-1 session and are satisfied with your session.
BIS 346 Indiana Wesleyan University Time Jave Project
User Generated
uvfynz94
Programming
BIS 346
Indiana Wesleyan University
BIS
Description
Unformatted Attachment Preview
BIS-346: Java Programming
5.4 assing
Programming Exercises
Introduction and Alignment
A program should be properly documented with sufficient comments to help others
read and comprehend the main logic in the program. The individual programming
exercises have been chosen to provide you with focused practice on developing
individual programming skills.
Resources
•
•
•
•
Textbook: Think Java, How to Think Like a Computer Scientist
Textbook examples modified for this course are downloaded from the classroom
Website: http://drjava.org/docs/user/ch09.html
IDE: DrJava debugging features
Instructions
1. Review the Assessment Criteria to make sure you understand the criteria for earning your
grade for this assignment. Note Javadoc requirement related to comments.
2. Create the workshop folder with name of the form LastnameFirstname Workshop Five.
3. In the workshop folder, create an exercise folder for each programming exercise. This
folder contains all files required by and resulting from completion of the assigned
exercise.
4. Any exercise that indicates “Write a method called …” presumes that the required
method will be included in a fully running program (class). The main method will invoke
any required method(s) providing the calling parameters necessary to demonstrate
proper function of the method.
5. Exercise 11.1
a. This utilizes Time.java and TimeClient.java. These are available in the textbook
code examples.
b. Copy the textbook example code to an exercise folder in the Workshop folder.
c. Name your modified increment method as incrementFirstname.
d. The main method should demonstrate testing both approaches to increment and
provide meaningful, formatted output messages demonstrating that the
‘new’ incrementFirstname method returns the same result as the original
textbook example method. There are legitimate reasons for a difference in the
hour result for a large value of seconds increment; comments should indicate
‘why’.
e. Demonstrate testing with multiple seconds increments including values 54, 135,
and 86400.
6. Exercise 11.2
a. Complete all aspects of the exercise as required in the textbook.
b. The equals method must include comments specific to the meaning of
equivalency you intended to develop.
c. The TestTile class (includes a 'main' method) must demonstrate the correct
function of all implemented elements; providing meaningful, formatted output
message of the results.
7. Exercise Chapter 12
a. This assignment includes the requirements of exercise 12.1 and 12.3.
i.
All files for the Chapter 12 programming will be in a single exercise folder.
ii.
Start with the Card.java class; copy it from the textbook example folder to
the Chapter 12 exercise folder.
iii.
Note: Students are NOT required to address deficient comments in the
Card.java class.
b. Write a class called TestCardHand including:
i.
Remember the iterative development approach; take small steps.
ii.
Create the main method for testing the program
iii.
Write the three methods as required in the exercises makeDeck, suitHist, hasFlush.
iv.
These methods are static methods included in the TestCardHand class.
v.
After the three methods function correctly, the final main method includes
the following:
1. Create a deck of cards (Card objects)
2. Accept input for the number of cards in a hand (presumably at
least five).
3. Loops to fill the hand
a. Input the card position in the deck (array of cards) – can
you use a Random Number generator?
b. Place the selected card into the hand.
c. Be sure to not attempt to use the same card in the deck
more than once.
2.
3.
4.
5.
d. Print the cards as they are ‘dealt’ into the hand.
4. Invoke suitHist method to obtain a histogram of the hand; Print
the resulting histogram for the hand.
5. Invoke hasFlush method; Print the result.
6. The main method in TestcardHand class includes variable
definitions and statements as required to demonstrate the proper
function of all three methods; it provides meaningful, formatted
output messages as to the results.
Each successful program should include a .java and a .class file. For example, Exercise 2.3
will produce the files Time.java (source) and Time.class (compiled) in an exercise folder.
All elements of the assignment will be in a single folder (see Step 2).
a. Create a zip archive of the workshop folder including all files and exercise folders
and submit it for grading
Points will be deducted:
a. For lack of Javadoc comment format for class and method comments and
relevant tags as depicted in Appendix B.
b. For insufficient comments, unconventional variable naming, or unstructured
program formatting in the programming that may cause reading difficulty.
c. For any minor grammar related compile error or for any major structure or
function related compile error that causes compile failure to generate a new
.class file.
d. For any runtime error with any valid input and expected output per original
requirements in the exercise.
e. For any runtime failure to identify any invalid input, send out a warning message,
and allow users to re-enter a valid input to continue processing.
When you have completed your assignment, submit the Zip archive created in step 9 to
your instructor using the Assignment submission by the end of the workshop .
Purchase answer to see full
attachment
Would you like to help your fellow students? Are you in need of an additional source of income? Apply to become a tutor on Studypool! Our best tutors earn over $7,500 each month!