Write a java that reads from the user annual income

Assignment Help JAVA Programming
Reference no: EM13292339

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.

Reference no: EM13292339

Questions Cloud

What is the magnitude of the force pulling the block : A 70 kg object is being pulled up a slope of 35 degrees with the horizontal so that the rope is parallel to the slope. what is the magnitude of the force pulling the block
Find frequency that will cause inductor to have impedance : 1. Determine the capacitance for a capacitorif its impedance is 5000 ohms at 400 radians/second. 2.Calculate the frequency that will cause a100mH inductor to have an impedance of 15,708 ohms.
Determine the intial acceleration of the proton : Calculate the electric force Fe between a stationary proton and uranium nucleus...separated by a distance of 3.6 nm, determine the intial acceleration of the proton
Explain naf is mixed with ba(no3)2 precipitate form : The Ksp for BaF2 is 2.4 x 10-5. When 10 mL of 0.01 M NaF is mixed with 10 mL of 0.01 M Ba(NO3)2, will a precipitate form
Write a java that reads from the user annual income : Write a Java program (name it IncomeTax) that reads from the user annual income as  integer value.
Find the potential at a point exactly halfway between plates : A parallel plate capacitor with a capacitance C= 200x10^-12 consists of two copper plates, Calculate the potential(voltage) at a point exactly halfway between the plates
Compute the annual percentage rate of interest loan : The bank offers you a 15-year mortgage you to pay a 3 percnt loan origination fee, which will reduce the effective amount the bank lends to you. Compute the annual percentage rate of interest loan.
What safety problem might the engineer encounter : An engineer attempts to build a remotely actuated door lock for asecurity operation. The door is powered by an electromagnetic actuator whose coil can be modeled as a 500Ω resistor .The actuator requires a minimum of 100mA of current for reliable ..
Should foreign subsidiary mne conform to capital structure : Should foreign subsidiaries of MNEs conform to the capital structure norms of the host country or to the norms of their parents country? Discuss.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd