subject
Engineering, 30.11.2019 04:31 hfleysher

Create a class, airtravelcost, that has the following characteristics: •attributes of departure/arrival date (stringin the form mmdd), departure/arrival time (stringin the form hhmm), destination, travelfare, and hotelcost(cost per night). •a constructor that accepts and updates all the attributes•a normal accessor for destination•durationcan be calculated. use the gregoriancalendar class. ocreate two gregoriancalendar objects, one for each of the departure and arrival dates and times. ouse the gettimeinmillismethod to get a date/time in milliseconds since a standard date & time. osubtract the two values (for the departure and arrival date/time) to yield duration in milliseconds. odivide the result by 60,000to get minutes and divide again by 60to get hours, etc. •calculate the lodging (hotel) cost by dividing the durationby 24hours and use the number of whole days only (no partial days). multiply the number of days by the hotel cost per night. •the total cost can be calculated as travelfare + getlodgingcost() + agent_fee•a tostringmethod returns a string formatted by string. format()who’s output looks like "air travel to destinationwill take durationand cost totalcost"

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
question
Engineering, 04.07.2019 18:20
For a gate width of 2 m into the paper, determine the force required to hold the gate abc at its location.
Answers: 1
question
Engineering, 04.07.2019 18:20
For each of the following process: a) sketch the p-v diagram, b)sketch t-s diagram, c) sketch t-v diagram, d) sketch the boundary work on one of the diagrams (a, b or c) and e) sketch the reversible heat transfer on one of the diagrams (a, b or c): 1- isobaric process from compressed liquid to superheated vapor 2- isothermal process from compressed liquid to superheated vapor 3- isentropic process from compressed liquid to superheated vapor
Answers: 3
question
Engineering, 04.07.2019 19:10
Abarometer contains mercury with a density of 13600 kg/m3. atmospheric conditions are 95.8 kpa and 20 °c at 20 °c, the vapor pressure of the mercury is 0.000173 kpa. the column of mercury will rise to a height of most nearly. select one: a)- 0.38 m b)- 0.82 m c)- 0.48 m d)- 0.72 m
Answers: 1
You know the right answer?
Create a class, airtravelcost, that has the following characteristics: •attributes of departure/arri...
Questions
question
History, 01.10.2019 19:30
Questions on the website: 13722363