Write a Java program that asks the user to enter his name, his year of birth...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a Java program that asks the user to enter his name, his year of birth and his monthly revenue. The program should first calculates the age of the user, then calculates the yearly tax on the revenue, which is 9.5% of the total yearly revenue. Note that: age = 2021 - yearOfBirth tax = (monthlyRevenue *12) * 9.5/100 The program finally prints a message to the user as shown in the following output. Sample run: Enter yeur name: Alice Enter your date of birth: 2002 Enter your monthly revenue: 350.5 Hello Al1ce, vour age is 19 years. The yearly tax you should pay is 399.575. Write a Java program that asks the user to enter his name, his year of birth and his monthly revenue. The program should first calculates the age of the user, then calculates the yearly tax on the revenue, which is 9.5% of the total yearly revenue. Note that: age = 2021 - yearOfBirth tax = (monthlyRevenue *12) * 9.5/100 The program finally prints a message to the user as shown in the following output. Sample run: Enter yeur name: Alice Enter your date of birth: 2002 Enter your monthly revenue: 350.5 Hello Al1ce, vour age is 19 years. The yearly tax you should pay is 399.575.
Expert Answer:
Answer rating: 100% (QA)
The program is given below import javautilScanner Import Scanner ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Write a program that asks the user to enter a favorite color, a favorite food, a favorite animal, and the first name of a friend or relative. The program should then print the following two lines,...
-
Write a program that asks the user to enter the size of a triangle (an integer from 1 to 50). Display the triangle by writing lines of asterisks. The first line will have one asterisk, the next two,...
-
Write a program that asks the user to enter a month (1 for January, 2 for February, and so on) and then prints the number of days in the month. For February, print 28 or 29 days. Enter a month: 5 30...
-
FinCorp Inc. is exploring different portfolio allocations between two stocks. Complete the following table. Case1 Case 2 Case 3 Case 4 Case 5 $ invested in stock 1 $ invested in stock 2 Total $...
-
Suppose an environmental impact study shows that the coral reef near Port Douglas, Australia, can sustain 20 scuba diving tours per week. Discuss the pros and cons of setting a quota of 20 dive tours...
-
Comment on the following: "Physicians earn above-competitive wages and the best evidence of this is the very high annual incomes that some doctors earn."
-
Figure Q23.8 shows two circuits. The two batteries are identical and the four resistors all have exactly the same resistance. a. Compare \(\Delta V_{\mathrm{ab}}, \Delta V_{\mathrm{cd}}\), and...
-
Determine whether the following statements relating to the AMT for a corporation are true or false. If false, explain why. a. Tax preference items only increase AMTI. b. A corporation uses the same...
-
White Company has two departments, Cutting and Finishing. The company uses job-order costing and computes a predetermined overhead rate in each department. The Cutting Department bases its rate on...
-
Foster Corporation issued three-year bonds with a $180,000 face value on March 1, 2011, in order to pay for a new computer system. The bonds mature on March 1, 2014, with interest payable on March 1...
-
Sealand Construction entered into a contract to construct a floating bridge across a lake. The contract price for the bridge is P7,500,000. During 2009, costs of P1,800,000 were incurred representing...
-
Company K uses LIFO to value its inventory. At the end of the year, how should K measure its inventory under ASC 330?
-
Convert between the two measurements. 870 s = min
-
Your company is considering a new project that will require $10,000 of new equipment at the start of the project. The equipment will have a depreciable life of five years and will be depreciated to a...
-
It has been suggested that, although ordinary shareholders are the overall owners of a corporation, they have little effective control over a company, in relation to management of that firm. If this...
-
In the case of a taxpayer electing to have their losses from a 2023 federally declared disaster claimed on their 2022 tax return, the taxpayer has until what date to make that election?
-
4. You are the administrator of a research firm and work in one project of data collection and their placement on a single web- server. The estimated value of each research project is about $100,000....
-
In Problems 1522, find the principal needed now to get each amount; that is, find the present value. To get $750 after 2 years at 2.5% compounded quarterly.
-
Write a method that counts the number of distinct elements in an ArrayList. Do not modify the array list.
-
Write Java code for a loop that simultaneously computes both the maximum and minimum of an array.
-
Type in and run the following program. Then modify it to show a different greeting and image. import java.net.URL; import javax.swing.ImageIcon; import javax.swing.JOptionPane; public class Test {...
-
The financial statements for the business of Jets Ski Equipment are shown below. Additional information 1. All purchases and sales of inventories are on credit. 2. On 1 July 2019, J. Waters injected...
-
Some of the most recent financial statements for Hyland Pty Ltd are shown below. Additional information 1. All purchases and sales of inventories are on credit. 2. On 1 July 2020, the shareholders...
-
The comparative statements of financial position of Cresta Ltd as at 30 June 2019 and 2020, and the income statement and statement of changes in equity for the year ended 30 June 2020 are shown...
Study smarter with the SolutionInn App