WRITE A COMPLETE JAVA PROGRAM WITH THE FOLLOWING SPECIFICATIONS
The primary theme of the paper is WRITE A COMPLETE JAVA PROGRAM WITH THE FOLLOWING SPECIFICATIONS in which you are required to emphasize its aspects in detail. The cost of the paper starts from $129 and it has been purchased and rated 4.9 points on the scale of 5 points by the students. To gain deeper insights into the paper and achieve fresh information, kindly contact our support.
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 1
Value: 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 2
Value: 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
- You need to submit the java and class files
- 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