Design a program using java code to process round trip

Assignment Help Basic Computer Science
Reference no: EM13725296

Design a program using JAVA code to process round trip tickets for travel to 2 cities and determine the bill for the travel tickets. The return trip must be at least 7 days from the initial trip to qualify for a discount of 20%, otherwise travelers will pay the standard rate of $150 per one way trip(there is 10% tax rate added to the total bill). This class should use the following private instance variables: traveler name, start date and return date of trip , bill amount, and any other you deem appropriate. At the very least, the class should have methods to request the guest's data(name,data- you can use days only for simplicity and not month or year,destination cities,etc) , display the invoice (traveler and details of the tickets) , and compute the final bill. Include accessor and mutator methods for the instance data. For maximum credit,make sure your program includes identifying documentation(your name, class name, date,etc), appropriate spacing, and is logically syntactically and semantically correct.

Reference no: EM13725296

Questions Cloud

Calculate the percent change in gross margin : Consider the following situation. Tricon Piping Systems manufactures small diameter potable polyethylene water pipe and achieves distribution primarily through plumbing wholesalers. The firm also sells directly to large construction companies, often ..
Assignment of database design : Create a data dictionary that includes the following: a. A description of the content for each field b. The data type of each field ac. The format the data will be stored as in the field d. The range of value for the field e. A label, as required, i..
What is the purpose of the production-or aggregate-plan : What is the purpose of the production-or aggregate-plan, What is the difference between productivity and efficiency
Information is available concerning trade margins and costs : Within a given distribution channel, the following information is available concerning trade margins and costs. A wholesaler has a unit selling price of $250 and a unit cost of $140. The retailer requires a 33% mark up on selling price. The manufactu..
Design a program using java code to process round trip : Design a program using JAVA code to process round trip tickets for travel to 2 cities and determine the bill for the travel tickets. The return trip must be at least 7 days from the initial trip to qualify for a discount of 20%, otherwise trave..
Computer referral tracking system : What is a computer referral tracking system? What is a manual referral tracking system? Why are they necessary for any medical practice?
Impact of leadership style on organization performance : The impact of leadership style on organization performance: A case of the Saudi Telecom Company (STC)
Future value of an annuity : Your client is 35 years old; and she wants to begin saving for retirement, with the first payment to come one year from now. She can save $15,000 per year; and you advise her to invest it in the stock market, which you expect to provide an average re..
Company expects this equipment will lead to cash flows : Muncy, Inc., is looking to add a new machine at a cost of $4,133,250. The company expects this equipment will lead to cash flows of $820,322, $863,275, $937,250, $1,018,610, $1,212,960, and $1,225,000 over the next six years. If the appropriate disco..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Search the internet for information on itil

Minimum number of words 500, referencing with Harvard style and the number of references not less than three Academic Articles or books.

  Write a method named longestsortedsequence

Write a method named longestSortedSequence that accepts an array of integers as a parameter and that returns the length of the longest sorted (nondecreasing) sequence of integers in the array.

  Create a jframe that uses borderlayout

Create a JFrame that uses BorderLayout. Place a JButton in the center region. Each time the user clicks the JButton, change the background color in one of the other regions. Save the file as JColorFrame.java.

  Calculate the area of the two-dimensional shape

Implement a Shape hierarchy where Each TwoDimensional Shape should contain the method getArea to calculate the area of the two-dimensional shape.

  Show even-parity encoding of bit string in form of bytes

Show the even-parity encoding of the following bit string, in the form of bytes: 0100101011101011101010110110 (break it up into pieces of data large enough to encode as several parity-encoded bytes.

  What is an "unbreakable" uml diagram

What is an "unbreakable" UML diagram. I have a Java assignment, and it's asking for this requirement, but I have never seen or heard of one.

  How to use system tools to identify problems

How can you use system tools, such as the Task Manager, to help identify and troubleshoot these problems? Report your findings in a one page paper.

  Optimal value of the objective function

Find the optimal value of the objective function for the following problem by only inspecting its dual. (Do not solve the dual by the simplex method)

  What is the message

The following padded ASCII-coded message is stored in successive memory locations in a computer.

  What window events can a program handle

What is the paintComponent method? How is it used in Java graphics? How does a program intentionally cause the paintComponent method to execute?

  Assess and evaluate key aspects of legal

Identify ethical, social and legal issues relevant to Information Systems within a context of application and assess and evaluate key aspects of legal, ethical and cultural issues relevant to an IT professional

  Describe how e-commerce begin and what made it successful

1). Describe how e-commerce begin and what made it successful. 2). Explain the advantages and disadvantages of outsourcing when it comes to technology.

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