Code needs to be in C++ Sample Output: Enter time in 24-hour notation: 13:07 Tha
ID: 3780081 • Letter: C
Question
Code needs to be in C++Sample Output: Enter time in 24-hour notation: 13:07 That is the same as 1:07 PM Again (y/n)? y Enter time in 24-hour notation: 10:15 That is the same as 10:15 AM Again (y/n)? y Enter time in 24-hour notation: 10:67 There is no such time as 10:67. Try again. Enter time in 24-hour notation: %9:&5 There is no such time as %9:&5. Try again. Enter time in 24-hour notation: 16:05 That is the same as 4:05 PM Again (y/n)? n End of Program Sample Output: Enter time in 24-hour notation: 13:07 That is the same as 1:07 PM Again (y/n)? y Enter time in 24-hour notation: 10:15 That is the same as 10:15 AM Again (y/n)? y Enter time in 24-hour notation: 10:67 There is no such time as 10:67. Try again. Enter time in 24-hour notation: %9:&5 There is no such time as %9:&5. Try again. Enter time in 24-hour notation: 16:05 That is the same as 4:05 PM Again (y/n)? n End of Program Due date: 12/6/16 Project 3: Time Converter Your task: Write a program that converts 24-hour time to 12-hour time. You will define an exception class called Time FormatMistake. If the user enters an illegal time, like 10:67 or even gibberish like %9:&5, then your program will throw and catch a Time FormatMistake exception Class Definition The TimeFormatMistake class must have at least: o One default constructor, o One argumented constructor, o One getter function to retrieve the one data member o One string data member: message. This data member will be used to display the following dialog: "There is no such time as