Write a menu driven program in python that does the following:
Question:
Write a menu driven program in python that does the following:
This program requires you to create a menu driven program that will generate invoices for veterinary services until the user quits. When a service is selected, display an appropriate message as shown below (you may choose your own appropriate message).
The program needs to display the total of all the services when the user selects the quit option. You need to keep a track of total cost in a variable and keep adding to it every time the user selects a service.
Note: User may quit in the first run of the program. The total in that case should be 0. The following shows sample run of the program. Remember that user inputs are in illustrated in bold italic
Sample run 1:
Chauncey's Vet Services
Exam: 45
Vaccinations: 32
Trim Nails: 8
Bath: 15
Quit
Enter your choice (1-5): 5
Thanks for visiting. Your total for today's visit is $0.0
Sample run 2:
Chauncey's Vet Services
Exam: 45
Vaccinations: 32
Trim Nails: 8
Bath: 15
Quit
Enter your choice (1-5): 7
Wrong choice. Please re-enter.
Sample run 3:
Chauncey's Vet Services
Exam: 45
Vaccinations: 32
Trim Nails: 8
Bath: 15
Quit
Enter your choice (1-5): 1
Your pet is now undergoing an exam.
Chauncey's Vet Services
Exam: 45
Vaccinations: 32
Trim Nails: 8
Bath: 15
Quit
Enter your choice (1-5): 3
Your pet is getting their nails trimmed.
Chauncey's Vet Services
Exam: 45
Vaccinations: 32
Trim Nails: 8
Bath: 15
Quit
Enter your choice (1-5): 5
Thanks for visiting. Your total for today's visit is $53.00
Accounting for Governmental and Nonprofit Entities
ISBN: 978-1259917059
18th edition
Authors: Jacqueline L. Reck, James E. Rooks, Suzanne Lowensohn, Daniel Neely