Portfolio Rubric
Criteria
Excellent (5)
Very Good (4)
Good (3)
Fair (2)
Poor (1)
Points
Awarded
content
• Main idea is clear
• Main idea is clear
• Main idea is not
• There is no clear
and concise.
and concise.
and concise.
clearly stated.
main idea.
• Information is
• Information is
• Information is
• Information may
• Information is
accurate and
accurate and
accurate but lacks
be inaccurate or
inaccurate and not
thorough.
generally
detail.
not thorough.
thorough.
• Supporting details
are accurate and
abundant.
organization
• Main idea is clear
• Excellent
thorough.
• Supporting details
• Supporting details
• Supporting
information is
information is
are accurate and
insufficient but are
insufficient or
insufficient and
sufficient.
mostly accurate.
inaccurate.
inaccurate.
• Organization or
• Organization and
points
awarded.
• Supporting
may be
• Clear organization
Enter
• There is no
Enter
organization of
of details with a
flow of content
flow of content is
apparent
points
details with a clear
logical flow of
may be unclear or
unclear and/or
organization or
awarded.
and logical flow of
content.
illogical in parts.
illogical.
logical flow of
content.
• Assignment is an
appropriate
length.
• Assignment is an
• Assignment is an
• Assignment is not
appropriate
appropriate
an appropriate
length.
length.
length.
content.
• Assignment is not
an appropriate
length.
Copyright © 2013 by Pearson Education, Inc. or one or more of its direct or indirect affiliates. All rights reserved.
Criteria
Excellent (5)
Very Good (4)
Good (3)
Fair (2)
Poor (1)
Points
Awarded
mechanics
Spelling, grammar,
Spelling, grammar,
Spelling, grammar,
Spelling, grammar,
Spelling, grammar,
Enter
and punctuation are
and punctuation are
and/or punctuation
and/or punctuation
and punctuation
points
error-free.
generally error-free.
have a few errors
have many errors
have many errors
awarded.
that do not interfere
that interfere with
that interfere with
with the meaning.
the meaning.
the meaning.
Total Points Awarded
Enter total points
awarded./15
Comments
Enter comments here.
Copyright © 2013 by Pearson Education, Inc. or one or more of its direct or indirect affiliates. All rights reserved.
Array Printer Program Portfolio
Complete the Array Printer Program portfolio.
Portfolio Overview
By completing this assessment, you will gain experience with passing array references to methods, overloading methods, and looping through one- and two-dimensional arrays.
Portfolio Goal
You will create a document containing a copy of your program source code text with commented output added.
Portfolio Details
Complete the following:
1. Start a program in a class named ArrayPrinter. Ignore the main method for a moment.
2. In your class, create a static method named printArray with one parameter of type int[] named arr. Inside this method, do the following.
a. Keep all of your output in this method on one line using System.out.print() until directed to use println().
b. Display an opening square bracket character.
c. Loop through the array that was passed into the method. Display the values in the array. Add a comma and a space after every value except the last one.
d. Using System.out.println(), display a closing square bracket character.
3. In your main method, create the following array. Pass the reference to this array to the printArray method, run your program, and verify that it works as expected.
3. In your main method, create the following array. Pass the reference to this array to the printArray method, run your program, and verify that it works as expected.
int[] oneD =
{5, 6, 7, 8};
4. In your main method, add a blank println() statement after the method call you just made.
5. In the class, create an overloaded static method named printArray with one parameter of type int[] [] named arr. Inside this method, do the following:
a. Using println(), display an opening square bracket character.
b. Loop through the two-dimensional array that was passed into the method.
i. First, use System.out.print() to display two space characters.
ii. Every element of this two-dimensional array that you are looping through is a one-dimensional array of int. Call the other printArray method and pass to it each one-dimensional array in the two-
dimensional array.
c. Using println(), display a closing square bracket character.
6. In your main method, create the following two-dimensional array. Pass the reference to this array to the printArray method, run your program, and verify that it works as expected.
int[] [] twoD = {{2, 4, 6, 8},
{8, 7, 9, 1},
{3, 5, 1, 2}};
7. In your main method, add a blank println() statement after the method call you just made.
8. In your main method, create the following ragged two-dimensional array. Pass the reference to this array to the printArray method, run your program, and verify that it works as expected.
9. Troubleshoot and fix any errors that occur.
int[] [] twoD2 = {{1, 2}, {3, 4, 5}, {6}, {7, 8, 9}};
9. Troubleshoot and fix any errors that occur.
int[][] twoD2 = {{1, 2}, {3, 4, 5}, {6}, {7, 8, 9}};
10. Highlight and copy the output shown in Eclipse from each of your three test runs. Paste the output at the bottom of your source code file the last closing brace. Then, add the text Results: above
comment out the text you just added plus the output text. Your commented results should look identical to this:
/* Results:
[5, 6, 7, 8]
[
[2, 4, 6, 8]
[8, 7, 9, 1]
[3, 5, 1, 2]
]
[
[1, 2]
[3, 4, 5]
[6]
[7, 8, 9]
]
*/
11. To submit your portfolio for grading, copy the entire text of your source file (including the comments you just added on the last slide) and copy it into a word processing document.
Purchase answer to see full
attachment