Add DataSet class and functions to the program below that results…

Question Answered step-by-step Add DataSet class and functions to the program below that results… Add DataSet class and functions to the program below that results to the sample run also below:¬†Programdef print_menu(): menu = ”’Main Menu1 – Print Average 2 – Print Minimum 3 – Print Maximum 4 – Adjust Zip Code Filters 5 – Load Data9 – Quit”’ while True: print(menu) choice = input(“What is your choice? “) try: choice = int(choice) if choice >= 1 and choice <= 5: if choice == 1: print("Option one is not available yet") elif choice == 2: print("Option two is not available yet") elif choice == 3: print("Option three is not available yet") elif choice == 4: print("Option four is not available yet") else: print("Option five is not available yet") elif choice == 9: print("Goodbye! Thank you for using the database") break else: print("That's not a valid selection") except ValueError: print("Please enter a number only")def menu(): print() print_menu()def main(): name = input("Please enter your name: ") try: name = int(name) print("Input shouldn't be numbers!") except ValueError: print(f"Hi {name}, welcome to the database.") menu()main()Sample Run (Note that the header is printed every time the menu is printed):Please enter your name: Eric ReedHi Test, welcome to the database.Enter a header for the menu: Test HeaderTest HeaderMain Menu1 - Print Average 2 - Print Minimum 3 - Print Maximum 4 - Print Min/Avg/Max5 - Adjust Filters6 - Load Data9 - QuitWhat is your choice? 1Option one is not available yetTest HeaderMain Menu1 - Print Average 2 - Print Minimum 3 - Print Maximum 4 - Print Min/Avg/Max5 - Adjust Filters6 - Load Data9 - QuitWhat is your choice? 2Option two is not available yetTest HeaderMain Menu1 - Print Average 2 - Print Minimum 3 - Print Maximum 4 - Print Min/Avg/Max5 - Adjust Filters6 - Load Data9 - QuitWhat is your choice? 9Goodbye! Thank you for using the databaseProcess finished with exit code 0¬†¬† Computer Science Engineering & Technology Python Programming CMPS 5P Share QuestionEmailCopy link Comments (0)

Leave a Comment

Your email address will not be published. Required fields are marked *