Write a Python loop for user entry of arrival and departure dates, calculations, and display of data a) Input arrival da
Posted: Thu Jul 14, 2022 2:17 pm
Write a Python loop for user entry of arrival and departuredates, calculations, and display of data
a) Input arrival date in the correct format
If arrival date is earlier than today’s date, display warningmessage and retry
b) Input departure date in the correct format
If departure date is less than arrival date display warningmessage and retry
c) Calculate the number of nights and total price
Nightly rate is $85.00
If month is August, nightly rate is $105.00
d) Display the output as shown in the sample screen shot
e) Prompt the user to continue entering data
2
The program must test all possible combinations of dataentry
a) Input arrival date in the correct format
If arrival date is earlier than today’s date, display warningmessage and retry
b) Input departure date in the correct format
If departure date is less than arrival date display warningmessage and retry
c) Calculate the number of nights and total price
Nightly rate is $85.00
If month is August, nightly rate is $105.00
d) Display the output as shown in the sample screen shot
e) Prompt the user to continue entering data
2
The program must test all possible combinations of dataentry