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
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

View attached ex...


Anonymous
I was having a hard time with this subject, and this was a great help.

Studypool
4.7
Indeed
4.5
Sitejabber
4.4

Similar Content

Related Tags