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
The filament of an incandescent lamp has a temperature of 2000k. calculate the fraction of radiation emitted in the visible light band if the filament is approximated as blackbody
Answers: 2
question
Engineering, 04.07.2019 18:10
What are the two (02) benefits, which may result from a successful implementation of preventive maintenance (pm) program in an organization? (clo3)a)- lean manufacturing b)-overlapping responsibilities c)-the planner is not qualified d)-accurate contractor information e)-reduction in equipment redundancies f)-accurate stores information
Answers: 3
question
Engineering, 04.07.2019 18:20
Select any two (2) areas of applications of chain-drive. (clo4) a)-permanent lubrication necessary b)-hydraulic forklift truck operation c)-rigging and heavy moving materials d)-relatively high maintenance costs e)-costlier than belt drives
Answers: 2
question
Engineering, 04.07.2019 18:20
Steam enters a converging nozzle at 3.0 mpa and 500Ā°c with a at 1.8 mpa. for a nozzle exit area of 32 cm2, determine the exit velocity, mass flow rate, and exit mach number if the nozzle: negligible velocity, and it exits (a) is isentropic (b) has an efficiency of 94 percent
Answers: 2
You know the right answer?
Create a class, airtravelcost, that has the following characteristics: ā€¢attributes of departure/arri...
Questions
question
Mathematics, 10.02.2021 18:10
question
Mathematics, 10.02.2021 18:10
question
Mathematics, 10.02.2021 18:10
question
Health, 10.02.2021 18:10
question
Physics, 10.02.2021 18:10