Calculate a customer''s charges and total bill

Assignment Help JAVA Programming
Reference no: EM13945413

The assignment is an assignment in which you, a software developer has won a contract to develop a program that will calculate a customer's charges and total bill at the gasoline pump, taking into account the following:

o The per-gallon price for gas is determined by whether the customer purchases leaded or unleaded gasoline.

o A federal gasoline tax is applied to each gallon of gas, varying by whether the gas is leaded or unleaded.

o If the customers pump the gas themselves, there are no additional charges apart from state sales tax. If the customers do not pump the gas themselves, one of the following two service charges apply:

· Gas-n-Go charge: If the customer asks for Gas-n-Go (the station pumps the gas for the customer but performs no other service), a fixed service charge is applied to the bill. The charge does not vary by the amount of gas purchased; the price remains the same whether the customer purchases a half gallon of gas or 10 gallons.

· Full-Service charge: If the customer asks for Full-Service (the station pumps the gas, checks the oil, checks the air pressure in the tires, and cleans the car windows), a fixed charge is applied to the bill. The charge does not vary by the amount of gas purchased; the price remains the same whether the customer purchases a half gallon of gas or 10 gallons.

o A state sales tax is applied to the sum of all charges except for the federal gasoline tax

Reference no: EM13945413

Questions Cloud

Is great political and spiritual leader now heaven with god : Is this great political and spiritual leader now in heaven with God? What is the Catholic position on whether non-Christians like Gandhi can be saved and redeemed? Does it make sense to you? Why or why not?
Explain how business understands the opportunities available : What is stakeholder theory? Explain. Explain how business understands the opportunities available in the age of sustainability
Expected return of the portfolio : You have a portfolio equally invested in Butterfly Hubcaps, Addi Corp and Brian’s Auto. The expected returns are 5%, 12%, and 17.5%. What is the expected return of the portfolio?
Market segmentation and target market selection : Cite a minimum of 3 sources used for your market analysis research. REVIEW the SBA website regarding Market Analysis - Go to Starting & Managing - Starting a Business - Create Your Business Plan - Market Analysis. Review the Web Resources by Topic..
Calculate a customer''s charges and total bill : A state sales tax is applied to the sum of all charges except for the federal gasoline tax
Considering project that has the cash flow : Harry's Inc. is considering a project that has the following cash flow and WACC data. What is the project's NPV? Note that if a project's projected NPV is negative, it should be rejected.
Strategic human resource management : Order Description analysis and recommendation report in Human resource management for a certain case study. Rail Wars - may the HR force be with you!
What implications of having such a flexible religious system : Many people have heard of the caste system even if they have not studied it in detail. To what extent should external moral and social norms be permitted to limit, infringe or supersede indigenous religious beliefs and customs?
Anderson systems is considering a project : Anderson Systems is considering a project that has the following cash flow and WACC data. What is the project's NPV?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Development of a graphical user interface

Understand actual communication with an SMTP server can be achieved using TCP Sockets and understand the development of a graphical user interface (GUI) and use of event handling.

  Create an application that demonstrates the use of the class

Create an application that demonstrates the use of the classes. Save the files as Player.java, Child.java, Actor.java, Musician.java, and UsePlayer.java.

  Project socket programming - udp objectives - learn socket

project socket programming - udp objectives - learn socket programming in java udp-nbsp cement your understanding of

  Role of inheritance in object-oriented programming

role of inheritance in object-oriented programming

  Create a new json view

Add code to your controller to check which view to display.  For this assignment, there will be a URL parameter named "format".  When the value of the "format" parameter is "json" display the JSON view, otherwise display the regular HTML JSP view.

  What challenges in planning solution for programming problem

what are the three biggest challenges in planning and designing a solution for a programming problem? What can you do to overcome these challenges? How would you apply these techniques to the programs in this class?

  Java program that reads from standard input

Write a JAVA program that reads from the standard input stream (System.in) the order of cards in a deck and outputs who will win as well as the number of rounds played. It is assumed that there are two players, Player 0 and Player 1.

  The ai player will not be asking

The AI player will not be asking the user for any input. This means that placeShips() and fire() should not ask the user for locations. The AI player should choose locations of ships and automatically place them

  Write java program to store values retrieved from user-array

Write a Java program named Arrays6_2GF.java Use an array to store values retrieved from user input. The number of integers to be entered (the length of the array )should also be retrieved through user input.

  A remote web-based file storage application

Develop a web-based application. The server-side part of the application must be developed using Java Servlets (possibly including JSP). The development of the client (browser) side will typically be a combination of HTML and Javascript.

  Create a messageframe class extending jframe

Create a MessageFrame class extending JFrame and a MessagePanel class extending JPanel.

  Java program that will prompt the user to input a file

Write a Java program that will prompt the user to input a file (document) in order to count the frequency of each word. This program will display the frequency of each word sorted alphabetically or by frequency (depending on the preference of the use..

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