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
Write a Python loop for user entry of arrival and departure dates, calculations, and display of data a) Input arrival da
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a Python loop for user entry of arrival and departure dates, calculations, and display of data a) Input arrival da
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!