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, 04.07.2019 18:10
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
question
Engineering, 04.07.2019 18:10
Ahot wire operates at a temperature of 200°c while the air temperature is 20°c. the hot wire element is a tungsten wire of 5 um diameter and 2 mm in length. plot using excel current, heat transfer and heat generated by the wire for air velocity varying from 1-10 m/s in steps of lm/s? matlab the sensor voltage output, resistance, or assume nu 0.989 re033pr13 take air properties at tr (200°c20°c)/2 = 110°c properties of tungsten: c 0.13 kj/kg.k 3 p 19250 kg/m k (thermal conductivity) = 174 w/m.k
Answers: 2
question
Engineering, 04.07.2019 18:10
Courses that are developed by subject matter experts, internal or extemal to the college or university. these programs are marketed by the school (clo2) marks a)-vocational schools b)-vendor training c)-colleges & universities d)-continuing education programs
Answers: 2
question
Engineering, 04.07.2019 18:20
Refrigerant-134a enters the compressor of a refrigerator as superheated vapor at 0.14 mpa and -10°c at a rate of 0.05 ka/s and leaves at 0.8 mpa and 50°c. the refrigerant is cooied in the condenser to 0.72 mpa and 26'c. it is then throttled to 0.15 mpa. sketch the t-s diagram for the system and evaluate: 6) the rate of heat removai from the refrigerated space (kw), it) the power input to the compressor (kw), ii) the isentropic efficiency of the compressor (%), and iv) the cop of the refrigerator.
Answers: 2
You know the right answer?
Create a class, airtravelcost, that has the following characteristics: •attributes of departure/arri...
Questions
question
English, 13.05.2021 18:10
question
Chemistry, 13.05.2021 18:10
question
World Languages, 13.05.2021 18:10
Questions on the website: 13722359