Answer to Question #7664 in C# for Phan LE

Question #7664
I have a project were the user enters an arrival date and a departure date and clicks the Calculate button or presses the enter key and the app. calculates, formats, and displays the number of nights and the total price.

The price per night should be $115. The application should validate both entries to make sure they are dates that are on or after the current date. The application should also validate the departure date to be sure that it is after the arrival date. This app. should only accept reservations within five years of the current date.

When the app. starts, it should display the current date in the first text box and the current date plus 3 days in the second text box. That way, the user can modify these default dates as necessary.

I have been breaking my head trying to figure out what I'm doing wrong since I can get the dates to appear in the text boxes as specified and only have a vague idea as to how to accept reservations for up 5 years.
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS