Monday, April 25, 2016

Java Assessment item 1

7:36 PM

Share it Please
Assessment item 1
Assignment 1
Value: 10%
Due date: 21-Mar-2016
Return date: 13-Apr-2016
Submission method options
Alternative submission method
Task

Assessment 1 has total 10 marks. Marks will be scaled according to the value of the assignment. There are two tasks in assessment 1, Task1: display a pattern and Task 2: calculate entry charges of a Zoo. 

Task 1
Value: 3 marks
Write a Java program that displays the following pattern (i..e, I LOVE U):
 
Hint: You may need to use the System.out.println() function. Use one vertical space between two letters in a word and two vertical spaces between two words (i.e., I, LOVE, and U).

Task 2
Value: 7 marks

Problem Description:


Table
2016 Personal Tax Rates
Marginal Tax Rate
Single
Married Filing Jointly or Qualified Widow(er)
Married Filing Separately
Head of Household
10%
$0 – $8,350
$0 – $16,700
$0 – $8,350
$0 – $11,950
15%
$8,351– $33,950
$16,701 – $67,900
$8,351 – $33,950
$11,951 – $45,500
25%
$33,951 – $82,250
$67,901 – $137,050
$33,951 – $68,525
$45,501 – $117,450
28%
$82,251 – $171,550
$137,051 – $208,850
$68,525 – $104,425
$117,451 – $190,200
33%
$171,551 – $372,950
$208,851 – $372,950
$104,426 – $186,475
$190,201 - $372,950
35%
$372,951+
$372,951+
$186,476+
$372,951+

You need to write a program to compute the personal income tax. Your program should prompt the user to enter the filing status and taxable income and compute the tax. Enter 0 for single filers, 1 for married filing jointly, 2 for married filing separately, and 3 for head of household.

Here are sample runs of the program:
Sample 1:
Enter the filing status: 0
Enter the taxable income: 100000
Tax is 21720.0

Sample 2:
Enter the filing status: 1
Enter the taxable income: 300339
Tax is 76932.87

Sample 3:
Enter the filing status: 2
Enter the taxable income: 123500
Tax is 29665.5

Sample 4:
Enter the filing status: 3
Enter the taxable income: 4545402
Tax is 1565250.7

Rationale
This assignment has been designed to allow students to test and demonstrate their ability to:
  • be able to implement basic algorithms in Java (objective 1)
  • be able to apply basic testing and debugging techniques in program development (objective 5)
Marking criteria
These criteria will be used to evaluate Assignment 1:
  • The tasks are performed as specified and the assignment is submitted as required
  • Appropriate understanding of the subject area is demonstrated, including correct use of approriate techniques
  • Explanations and discussions are cogent and use clear and correct English expression
  • Referencing is used where appropriate

Marking guide specific to tasks:


Assessment 1 (Total marks 10)
Task 1 (total marks 3)
Criteria
Marks
Pass
CR
DI
HD
a.    Execution: Program launches, executes and terminates without crashing; program executes as specified.
0.5
Provide java file and it executes without crashing towards intended output (0.5)
b.    Program design & implementation: An appropriate main method with the display specified in the question
1.5
Execute and print the letters with some alignment problem(0.75)
Execute and print all letters with accurate spacing & alignment (1.5)
c.     Presentation: Code uses good style (indentation, comments)
0.5
Few comments and minor error in indentation (0.25)
Proper indentation in each block and comments in major lines and blocks (0.5)
d.    Submission: the documents with all components ( java code and output)
0.5
Provide a sample output (0.5)
Task 2 (total marks 7)

Marks
Pass
CR
DI
HD
a.    Execution: Program launches, executes and terminates without crashing; program executes as specified.
1.0
Provide java file and it executes without crashing towards intended output (1.0)
b.    Program design & implementation: Programs includes correct implementations of (i) correct table content [1], (ii) programming structure e.g., selection [1], (iii) calculations [1], (iv) results [1], and (v) overall good logical flow including low to high income tax calculation [0.5]
4.5
Execute and compute the tax correctly for the given example (2.25)
Execute but compute the tax with minor errors in one/two options (3-4)
Execute and compute the correct tax with proper java structure and logical flow (4.5)
c.     Presentation: Code uses good style (indentation, comments)
0.5
Few comments and minor indentation errors (0.25)
Proper indentation and comments in each block and major lines (0.5)
d.    Submission: The document with all components (analysis, design, coding, testing, and output)
1.0
Provide sample output (0.5)
Provide all components within the specified word length(1.0)


Presentation
 Material to submit for Task 1
 
1. You need to submit the java and class files
2. You need to submit a doc/pdf file with a snapshot of the program output 

Material to submit for task 2

1. You need to submit the java and class files
2. You also need to submit a doc/pdf file with following information:
a. Analysis: Describe the problem including input and output in your own words (not more than 150 words)
b. Testing & Output: Describe how you tested this program (not more than 150 words) with snapshots of the program output
  
Requirements


To complete this assignment you might need to have covered materials up to and including the topic Selection and Looping in the Text Book and Topics.

0 comments:

Post a Comment