Cashback Offer (20th - 30th September 2020). Get Flat 10% Cashback credited in your account on a minimum transaction of $80. Post Your Question

Question DetailsNormal
$ 50.00

Java Assessment item 1 : Task 1 & Task 2

Question posted by
Online Tutor Profile
request

Assessment item 1

Assignment 1

Value: 10%

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:

 

The Australian Government introduces a new personal income tax in 2016. The personal income tax is calculated based on filing status and taxable income. There are four filing statuses: single filers, married filing jointly, married filing separately, and head of household. The tax rates vary every year. The following table shows the rates for 2016. If you are, say, single with a taxable income of $10,000, the first $8,350 is taxed at 10% and the other $1,650 is taxed at 15%. So, your tax is $1,082.5.

 

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.

Available Answer
$ 50.00

[Solved] Java Assessment item 1 : Task 1 & Task 2

  • This solution is not purchased yet.
  • Submitted On 31 Aug, 2020 07:02:15
Answer posted by
Online Tutor Profile
solution
Java Program...
Buy now to view the complete solution
Other Similar Questions
User Profile
APlus...

Java Assessment item 3 : Task 1, Task 2, & Task 3

Java Programming are completed and attached below Please find the solution...
User Profile
APlus...

Java Assessment item 2 : Task 1 & Task 2

Java Program is completed and attached with solutions...
User Profile
APlus...

Java Assessment item 1 : Task 1 & Task 2

Java Programming solution is attached with the file...

The benefits of buying study notes from CourseMerit

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35