subject

Project 14-1: Reservation CalculatorCreate an application that gets arrival and departure dates for a reservation and calculates the total amount for the stay. ConsoleReservation CalculatorEnter the arrival month (1-12): 5Enter the arrival day (1-31): 16Enter the arrival year: 2018Enter the departure month (1-12): 5Enter the departure day (1-31): 18Enter the departure year: 2018Arrival Date: May 16, 2018Departure Date: May 18, 2018Price: $145.00 per nightTotal price: $290.00 for 2 nightsContinue? (y/n): nBye!SpecificationsCreate a class named Reservation that defines a reservation. This class should contain instance variables for the arrival date and departure date. It should also contain a constant initialized to the nightly rate of $145.00.The Reservation class should include the following methods:public LocalDate getArrivalDate()public String getArrivalDateFormatted()public setArrivalDate(LocalDate arrivalDate)public LocalDate getDepartureDate()public String ()public setDepartureDate(LocalDate departureDate)public int getNumberOfNights()public String ()public double getTotalPrice()public String getTotalPriceFormatted()Assume that the dates are valid and that the departure date is after the arrival date. Possible enhancement

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:30
When using a public computer or network, you should always
Answers: 2
question
Computers and Technology, 22.06.2019 22:50
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Need fast im timed in a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their projects.
Answers: 2
You know the right answer?
Project 14-1: Reservation CalculatorCreate an application that gets arrival and departure dates for...
Questions
question
Advanced Placement (AP), 26.11.2020 04:30
Questions on the website: 13722363