Create three classes for a customer

Assignment Help JAVA Programming
Reference no: EM13163332

a travel manager and have a job of buying a travel package for a customer. You must create three classes for this programming challenge: Customer, Ticket, and TravelManagerDemo.

 

A) Customer class

Must store:

-Customer name

-ID number

-Cruise Company

-Maxium available amount to spend(budget)

 

B)Ticket class

- To Use Customer class to report customer's data

-To Calculate total amount customer will pay using formula TotalPrice=TicketPrice +(TicketPrice + AgentCommission)

The Travel Manager takes 10% of commission of price ticket

 

C)TravelManagerDemo class

- To demonstrate collaboration of two base classes using aggregation

- To check if Total Price is not higher than Maxium available amount to spend(budget). The message should display: Price of ticket is below budget or price of ticket is above budget.

 

Hard code is to be used for Name, ID, Cruise and Maximum Avaiable(2000)

 

 

Reference no: EM13163332

Questions Cloud

Inherent flaw in the drying procedure for the gravimetric : There is an inherent flaw in the drying procedure for the gravimetric determination that causes the measured mass of BaSO4 to be erroneously high
Calculate the ph and the ionization constant : Calculate the pH for each of the following cases in the titration of 50.0 mL of 0.150 M HClO(aq) with 0.150 M KOH(aq). The ionization constant for HClO is 4.0*10^-8
Will the new pressure need to be larger or smaller : The original conditions on a container filled with gas at a constant temperature are 180 cc and 300 mm Hg. The desired new volume is 90 cc.
Reads contents of two vectors : Write a program that reads contents of two vectors, and then displays the sum of these two vectors. The program should prompt the user to enter the size of the vectors first.
Create three classes for a customer : a travel manager and have a job of buying a travel package for a customer. You must create three classes for this programming challenge: Customer, Ticket, and TravelManagerDemo.
Preparation and presentation of financial statements : With reference to the Framework for the Preparation and Presentation of Financial Statements (Conceptual Framework) justify whether Emoney satisfies the definition and recognition criteria of an asset.
Compute the empirical formula and molar formula : Calculate the empirical formula and the molar formula.
What is the benefit to acme manufacturing : What is the benefit to Acme Manufacturing of applying activity-based costing to its R&D activity for both in-house and outside charging purposes?
Explain gallium consists of two isotopes of masses : Gallium consists of two isotopes of masses 68.95 amu and 70.95 amu with abundances of 60.16% and 39.84%.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Elliptic curve encryption

write a program to implement Elliptic Curve encryption/decryption and program will read parameters, plaintext and ciphertextfrom a file named "input.txt" (under the same directory).

  Using a linked implementation of graph write a method

Write a method that takes two nodes as input and returns true if joining an edge between these two nodes, forms a duplicate path to one of the input nodes within the graph.

  Socket programming in java: tcp

In this project we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web server that is capable of processing multiple simultaneous service requests in parallel.

  Have an array of integers with user input instead of given

change the current code to have an array of integers with user input intead of given input from the main where it says int[] a=....; And also from a text file but the same numbers as what is given in main.

  Java applet to find how much federal tax we need to pay

Write a java applet to determine how much federal tax we need to pay assuming the tax rate is 12%.  Ask the taxable income.

  Write a void function this passed three integers

1. Write a void function this passed three integers by reference. The function should rearrange the parameter values so that the first parameter will get the smallest value; the second parameter the middle value; and the third parameter the largest v..

  Create a java class called samearraysexception

Create a Java class called SameArraysException that extends the Exception class.

  Create a file that contains your favorite movie quote

Create a file that contains your favorite movie quote. Use a text editor such as Notepad, and save the file as quote.txt. Copy the file contents,

  Create java applet to represent grade of gas

Write a java applet (not a java application program) for costco gas station. The applet will first ask you whether you are a costco customer, then the grade of gas you want to use.

  Create java applet to input miles driven and gallons used

Create the Java applet which will input miles driven and gallons used (both as integers) for each tankful. Program must compute and display miles per gallon obtained for each tankful.

  Write a java program in a netbeans project

Write a Java program in a NetBeans project

  Write program in java for total amount of customer-s order

Write down program in Java which would ask for clerk to enter total amount of customer's order. Program will then compute seven percent (7%) sales tax.

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