We're Open
+44 7340 9595 39
+44 20 3239 6980

WRITE A COMPLETE JAVA PROGRAM WITH THE FOLLOWING SPECIFICATIONS

  100% Pass and No Plagiarism Guaranteed

WRITE A COMPLETE JAVA PROGRAM WITH THE FOLLOWING SPECIFICATIONS

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: calculate cube and Task 2: calculate tax.

Task 1Value: 5 marks

Write a complete Java program with the following specifications:

  • Display a welcoming message such as: “Welcome to Cubing Program!”
  • Prompt the user twice to enter two positive whole numbers, indicating starting and finishing values, first one being smaller than the second one
  • Calculate the cube of each number from starting value to finishing value and then display an appropriately headered two column table with each row containing the number and its cube
  • Display a farewell message such as: “Goodbye, thank you for using our program!”

 

As an example, if the starting and finishing values were 2 and 4 respectively, the table in the output would look something like the following:

 

            Number                                      Cube

                2                                             8

                3                                             27

                4                                             64

 

Ensure that the program is appropriately documented throughout and thoroughly tested to demonstrate its correct operation.

You may assume that the user of the program enters the inputs as required so that no input validation or error checking is necessary.

Task 2Value: 5 marks

The Australian Government introduces a new personal income tax in 2017. 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 2017. 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.

 

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:

 

Presentation

Material to submit for Task 1 and Task 2

 

  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 for at least two executions

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.


100% Plagiarism Free & Custom Written,
Tailored to your instructions


International House, 12 Constance Street, London, United Kingdom,
E16 2DQ

UK Registered Company # 11483120


100% Pass Guarantee

STILL NOT CONVINCED?

View our samples written by our professional writers to let you comprehend how your work is going to look like. We have categorised this into 3 categories with a few different subject domains

View Our Samples

We offer a £ 2999

If your assignment is plagiarised, we will give you £ 2999 in compensation

Recent Updates

Details

  • Title: WRITE A COMPLETE JAVA PROGRAM WITH THE FOLLOWING SPECIFICATIONS
  • Price: £ 129
  • Post Date: 2024-08-28T18:23:38+00:00
  • Category: Assignment
  • No Plagiarism Guarantee
  • 100% Custom Written

Customer Reviews

WRITE A COMPLETE JAVA PROGRAM WITH THE FOLLOWING SPECIFICATIONS WRITE A COMPLETE JAVA PROGRAM WITH THE FOLLOWING SPECIFICATIONS
Reviews: 5

A masterpiece of assignment by , written on 2020-03-12

I received my order last night and now I’m writing my reviews. My assignment has all the points I needed along with a good style. The citations used are relatable and professional. The best thing is the discount I got because I recommended my friend too to use their service. I am so pleased to use this effective service. The features are also amazing, everything is good. Will come again soon!
Reviews: 5

A masterpiece of assignment by , written on 2020-03-12

Insta Research is a very helpful place to buy a resume in the first place. I gave them my details and did not expect that they would come up with such an exclusive design. My personality is professionally enhanced through the resume made by them. I am thankful for the depth of my heart as I would have never approached that level of excellence in my resume. Wish you good luck ahead and again thank you!