Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Program #2 (10 points): Write a Java program (name it IncomeTax) that reads from the user annual income as
integer value. The program then, on separate lines, prints out the income amount along with the tax bracket using the
following scale:
Annual income <= $50,000 tax bracket: 5%
$50,000 < Annual income <= $100,000 tax bracket: 15%
$100,000 < Annual income <= $150,000 tax bracket: 20%
$150,000 < Annual income <= $250,000 tax bracket: 30%
$250,000 < Annual income <= $500,000 tax bracket: 35%
$500,000 < Annual income tax bracket: 50%
Make sure to properly label your output, format the output (using $ and %), and use escape character (t) to lineup the
outputs after the labels. Document your code and organize and properly space out the outputs.

Program #3 (10 points): Write a Java program (name it PhoneBill) that that calculates the bill for a cellular
telephone company. The company offers two types of service: regular and premium. The rates vary depending on the
type of service. The rates are computed as follows:
Regular service: $10.00 plus first 50 minutes are free. Charges for over 50 minutes are $0.20 per minute.
Premium service: $25.00 plus:
a. For calls made from 6:00AM to 6:00PM, the first 75 minutes are free; charges for over 75 minutes are $0.10
per minute.
b. For calls made from 6:00PM to 6:00AM, the first 100 minutes are free; charges for over 100 minutes are
0.05 per minute.
Your program should prompt the user to enter an account number, a service code (type char), and the number of
minutes the service was used. A service code r (or R) means regular service; while code p (or P) means premium
service.
For the premium service (code P), the customer may be using the service during both the day and at night. Therefore,
you must ask the user to input the number of minutes used during the day and the number of minutes used at night.
The program should output, on separate lines and with proper labels, the account number, service type, number of
minutes the service was used, and the amount due from the user.

Java, Programming

  • Category:- Java
  • Reference No.:- M9871668
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in Java

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Answer the following question whats the difference public

Answer the following Question : What's the difference public inheritance and private inheritance? What can derived classes inherit from base classes? What cannot be inherited from base classes?

Can someone help me please with those question1what is the

Can someone help me please with those question 1:what is the best data type for student id datatime,currency,number,decimal 2:which relationshipis preferable? one to one,one to many,many to many 3:if you add table A's pr ...

Solving 2nd degree equationsbull write the following java

Solving 2nd degree equations • Write the following Java methods • boolean real-sols(double a, double b, double c): it returns true if the 2nd degree equation ax2 + bx + c has real solutions • double solution1(double a, d ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Assignment - java program using array of objectsobjectives

Assignment - JAVA Program using array of objects Objectives - This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details - For this assignment, you are required to develop a Menu ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Can someone kindly help me to consider whether java

Can someone kindly help me to consider whether Java provides the facility of operator overloading? If it does, may you kindly describe how overloading operators can be accomplished? If not, may you kindly describe why yo ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As