CMIS147 Introduction to Programing

profileebote
Assignment6.pdf

Assignment 6

Before attempting this project, be sure you have completed all of the reading assignments, non-

graded exercises, discussions, and assignments to date.

Write a Java program as follows:

1. Prompt user for the number of teams 2. For each team have the user enter team's name and judge's score (400-1000) 3. Store names and scores in separate arrays 4. Code method which gets integer array and uses for-loop to find the index of the smallest value 5. Code method which gets integer array and uses for-loop to find the index of the largest value 6. Output all teams with their scores 7. Output which team has the highest judge's score and which team has the lowest judge's score

Make sure your Java program is using the recommended style such as:

• Javadoc comment upfront with your name as author, date, and brief purpose of the program

• Comments for variables and blocks of code to describe major functionality

• Meaningful variable names and prompts

• Identifiers are written in upper CamelCase

• Class name starts with upper case letter and variables in lower case letter

• Constants are written in All Capitals

• Use proper spacing and empty lines to make code human-readable

Capture execution:

You should capture and label screen capture associated with compiling your code and running a

test case.

Here is a sample run:

RUN:

How many teams do you want to enter: 3 Team 1:

Enter team's name: Lucky Lizards Enter team's score (0-100): 500

Team 2: Enter team's name: Righteous Rabbits Enter team's score (0-100): 650

Team 3: Enter team's name: Brave Badgers Enter team's score (0-100): 475

Lucky Lizards 500 Righteous Rabbits 650

Brave Badgers 475 The Righteous Rabbits have the highest score => 650 and The Brave Badgers have the lowest score => 475

Submission requirements

Deliverables include a Java program (.java) and a single Word (or PDF) document. The Java

and Word/PDF files should be named appropriately for the assignment (as indicated in the

SubmissionRequirements document.

The word (or PDF) document should include screen captures showing the successful compiling

and running of each of the test cases. Each screen capture should be properly labeled and

indicate what the screen capture represents.

Submit your files to the Assignment 6 submission area no later than the due date listed in

your online classroom.

Grading Rubric:

The following grading rubric will be used to determine your grade:

Attribute Level (15-20 points)

Level (5-15 points)

Level 0 (0 - 5 points)

Input and arrays Correct or one incorrect prompt

and captured input

in arrays

Two mistakes in

prompts and/or

capture of input

and/or arrays

Three or more missing

elements, missing user input

and/or use of arrays

Output Correct or one element of incorrect

output

Two mistakes

in output Three or more missing

elements or

significantly incorrect

output

Methods for min and

max values

Code is

correctly

implemented

using methods

Code has

mistakes but

uses

methods

Code does not use methods

Test Case Correct or one incorrect test case

and test execution

Two mistakes or

incomplete test cases

and execution

Three or more missing

or significantly

incorrect test cases

Program

documentation and

style

Correct or one

missing program

comment,

identifier, and/or

screen capture

Two incorrect or

incomplete

documentation

and/or style

elements

Three or more missing or

significantly incorrect

documentation and/or style

elements