Question: Write a Python program that calculates and displays the time and the week day. Your program should be a menu-driven program that does the following:

Write a Python program that calculates and displays the time and the week day. Your program should be a menu-driven program that does the following: - Displays the current time in 12-hour format (hh:mm:ss) - Displays the current time in 24-hour format (hh:mm:ss) -Displays the elapsed time of the day in seconds -Displays the remaining time of the day in seconds -Displays the current day of the week -Calculates the day of the week in the past/future (user will enter an integer representing the number of days in the past and the future)

The functionality of the program shoudl be represented as menu options. Once the user makes a selection, your program will calculate and display the result associated with the user's selection. Your program should contain the following functions: 1) Menu: this function will be used to display the available choices a. takes no parameters 2)displayTime24Hour a. takes a datetime object as parameter 3)displayTime12hour a. takes a datetime object as parameter 4)displayElapsedTime a.takes a datetime object as parameter 5)displayRemainingTime a.takes multiple parameters 6)displayWeekday a. takes a datetime object as parameter 7)displayCalcWeekDay a. takes an integer as parameter

User should be able to run the program multiple times without having to exit and restart the program. Write your program so that it includes an exit menu option. Once the user selects this option, the program should end.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!