Program that computes the annual road tax

Assignment Help JAVA Programming
Reference no: EM13942056

Write a program that computes the annual road tax (vehicle excise duty) charges for three types of vehicles: vans, cars and motorcycles.

The road tax rate is calculated as follows for each type of vehicle:

Vans
Light goods vehicles weighing less than 3500kg are charged at 165 GBP (British Pounds); otherwise they are charged at 190 GBP.

Cars
All cars registered on or before 1 March 2001 are charged according to their engine size (in cc). A car with an engine size of less than or equal to 1550cc is charged at 110 GBP; otherwise it is charged at 165 GBP.

If the date of car's registration is after 1 March 2001, the annual road tax charge is calculated according to the CO2 emission of the vehicle. The table below displays the different road tax charges for this criterion.
(Hint: see the API documentation for the Date and DateFormat class)

Petrol Car

CO2 Emission Figure (g/km) 12 months rate in GBP
------------------------------------ ------------------------------
Up to 100 65.00
101 to 120 75.00
121 - 150 105.00
151 - 165 125.00
166 - 185 145.00
Over 185 160.00

Table 1: Road tax charges for private vehicles registered on or after 1 March 2001

Motorcycles
Motorcycles are charged according to their engine size (in cc). The following table displays the list of road tax charges according to this criterion.

Motorcycles
Motorcycles (with or without sidecar) 12 months rate in GBP
------------------------------------------- ------------------------------
Not Over 150cc 15.00
151cc - 400cc 30.00
401cc - 600cc 45.00
All other motorcycles 60.00

Table 2: Road tax charges for motorcycles

Task

Create an invoicing system that will ask the user to input a vehicle's

a) Manufacturer name (e.g. Toyota)

b) Model (e.g. Avensis)

c) Date of registration (e.g. 17/12/2002)

Depending on the type of vehicle (van, car or motorcycle), the program should proceed to produce an invoice containing the above input details as well as the amount of road tax charge to be paid for that particular vehicle.

Output screen 1 displays the program's results for a car registered before 1 March 2001 (based on engine size), while output screen 2 displays the same program's results for a car registered after 1 March 2001 (based on CO2 emission).

You must use inheritance when creating classes for the various types of vehicles, and the program should not crash if the user inputs incorrect data. The code must be well explained.

2475_s1.png

1828_s2.png

Reference no: EM13942056

Questions Cloud

Understanding of the differences in social culture : 1. As a global manager, how would you rethink your concept of time and patience to assure you and your global partners are on the same page? 2. As a global manager, what other "forces" lead to the understanding of the differences in social culture?
Write a reflective analysis based on your leadership skills : You are to write a Reflective Analysis based on your Leadership Skills and Leadership Behavior.
How many units must rosenberg sell in the first year : How many units must Rosenberg sell in the first year to break even? Carefully explain, including any assumptions that you make
Difficulties in financial statement analysis : Please respond to all of the following prompts in the class discussion section of your online course: Many assets are presented at historical cost. Why does this accounting principle cause difficulties in financial statement analysis?
Program that computes the annual road tax : All cars registered on or before 1 March 2001 are charged according to their engine size (in cc). A car with an engine size of less than or equal to 1550cc is charged at 110 GBP; otherwise it is charged at 165 GBP.
Decided to use the money to start a retirement account : When Jamal graduated from college recently, his parents gave him $1,460 and told him to use it wisely. Jamal decided to use the money to start a retirement account. After doing some research about different options, he put the entire amount into a ta..
Double taxation of corporate profits : 1) Double taxation of corporate profits refers to: 2) Social enterprises emphasize:
Estimate the roof temperature under steady-state conditions : Estimate the roof temperature under steady-state conditions - explore the effect of changes in the absorptivity, emissivity, and convection coefficient on the steady-state temperature.
What is the projects weighted average cost of capital : A firm with a corporate wide debt-to-equity ratio of 0.5, an after cost tax of debt of 7 %, and a cost of equity capital of 15% is interested in pursuing a foreign project. What is the project’s weighted average cost of capital?

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