f Statements - Program #1 Ms. Monroe is an Income Tax Practitioner who operated a service that prepares income tax forms. Her fees are based on the type of form filed and yearly income. Program Specifications: a. Create a folder named If Program 01. Save the Java file as TaxPrep. b. Input consists of the customer's name, the form type (1 - short form; 2 - long form), and the yearly income. Sample input is illustrated on page 2. You will enter the input from the keyboard. Input prompts should be very specific. When inputting the form type make sure that you display 1 – Short Form or 2 – Long Form. The user needs to know what to enter. This program will process one record and only one record at a time. c. The basic fee is $100 for a short form (form type of 1) or $200 for a long form (form type of 2). The income fee is based on the yearly income. If the yearly income is less the $50,000, the income fee is the same as the basic fee. If the yearly income is $50,000 or more, the income fee is double the basic fee.
JAVA
If Statements - Program #1
Ms. Monroe is an Income Tax Practitioner who operated a service that prepares income tax
forms. Her fees are based on the type of form filed and yearly income.
Program Specifications:
a. Create a folder named If Program 01. Save the Java file as TaxPrep.
b. Input consists of the customer's name, the form type (1 - short form; 2 - long form), and
the yearly income. Sample input is illustrated on page 2. You will enter the input from the
keyboard. Input prompts should be very specific. When inputting the form type make
sure that you display 1 – Short Form or 2 – Long Form. The user needs to know what to
enter. This program will process one record and only one record at a time.
c. The basic fee is $100 for a short form (form type of 1) or $200 for a long form (form type
of 2). The income fee is based on the yearly income. If the yearly income is less the
$50,000, the income fee is the same as the basic fee. If the yearly income is $50,000 or
more, the income fee is double the basic fee.
d. The output will consist customer’s name, the basic fee, the income fee, and the total fee.
Display the fees with a dollar sign. The data displayed on the screen should be written on
separate lines with a column heading identifying the data. There should be blank lines
between the input data and the output data that is displayed on the screen.
e. This program will consist of 2 If statements. Do not use a nested If. You decided on the
appropriate data types and variable names. Named constants must be used in the
program.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images