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 02:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print?
Answers: 1
question
Computers and Technology, 23.06.2019 20:50
3.11.3 quiz: comparing and analyzing function typesquestion 4 of 102 pointswhat can you say about the y-values of the two functions f(x) = 3x2-3 andg(x)=2* - 3?
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Select all that apply. what two keys listed below should you use to enter data in an excel worksheet? tab backspace enter right arrow
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
Pseudocode pld #6, pg. 117 start// declarations// number numbertoguess// number myguess; numbertoguess = 92// while myguess ! = numbertoguess// output " guess an integer number between 1 and 100"// input myguess// if (myguess == numbertoguess)// output "you guessed the correct number"// else// output "the number you guessed was incorrect. try again! "// end if// end while// output " for playing the guessing game. have a great day! "// stop
Answers: 3
You know the right answer?
Project 14-1: Reservation CalculatorCreate an application that gets arrival and departure dates for...
Questions
question
Mathematics, 16.03.2020 20:55
Questions on the website: 13722361