5) LoopFun15 - CSC 210 FA23 001 - University of Arizona

pdf

School

University Of Arizona *

*We aren’t endorsed by this school

Course

210

Subject

Computer Science

Date

Feb 20, 2024

Type

pdf

Pages

3

Uploaded by MagistrateQuetzal3896

Report
5) LoopFun15 Hide Assignment Informa±on Instructions MJ Assignments 5) LoopFun15 5) LoopFun15 Collaboration: Solo Goals: Implement the algorithmic patterns from Chapter 6: Determinate Loops and Indeterminate Loop using Java's for and while statements and java.util.Scanner Determine test cases and write many assertions in @Test methods to fully test your methods (needed for Code Coverage). How to Proceed Download these two files to a place you can remember LoopFun.java LoopFunTest.java Start Eclipse if needed and start a new project (named 04LoopFun next) Copy and paste these two files into your new Eclipse project that should look close to this Open LoopFun.java and read the comments Implement and test each of the 15 methods while writing as many @Test methods and assertions that you can think of Remember that you can run one @Test at a time Code Coverage When you have all methods correct, run the entire unit test. Also perform Code Coverage by running your JUnit Test with Coverage As Listen Submit Cancel
You should get 100% code coverage. But due to differences with Windows, you only need 96% code coverage to get full credit for Code Coverage If you didn't get either, click on the file that's not 100% and look for red highlighted statements that did not run If an assert fails, all following asserts will be red, so make sure all asserts pass first Yellow highlighted statements are like warnings, usually found around boolean expressions and do no reduce the percent of coverage. Turnin Submit these two completed files to the D2L Assignment dropbox named "5) LoopFun" LoopFun.java LoopFunTest.java Grading Rubric 100 points (subject to change) Negatives -2 Missing your name as a comment in LoopFun.java -2 You did not format code with LoopFun.java (Source > Format) -2 You did not use intention revealing (meaningful) identifiers -4 You did not use camelCase lettering: first letter is lower case, each new word begins with one upper case letter ThisisNotcAmelcaSe this_is_not thisIsCamelCase -5 For any function using recursion instead of a loop -2 for any loop that does not have curly braces: { }
Add a File Record Audio Record Video Due on Sep 11, 2023 11:59 PM Submit Assignment Files to submit (0) file(s) to submit After uploading, you must click Submit to complete the submission. Please Note: Do not include the following symbols in your file names: < > : " / \ | ? * They will not upload. Comments -0 to -10 Unanticipated error Turned in wrong file(s), had to fix a small syntax error, had to fix a logic error, . . . Positives +90 We will run our unit test with our many @Test methods on your code. -6 for any one of your methods that is not perfect. +10 Code Coverage for LoopFun.java (JUnit test is not to be averaged). Run the JUnit test using Coverage As -0 coverage >= 97% -5 94% <= coverage < 97% -10 coverage < 94%
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help