4.11 Program: Veterinarian Billing This program requires you to create a simple program that will generate invoices for veterinary services. The requirements are: (1) Output a menu of veterinary...


Why is the code I wrote wrong? Could someone explain why? I do not understand why.


4.11 Program: Veterinarian Billing<br>This program requires you to create a simple program that will generate invoices for veterinary services. The requirements are:<br>(1) Output a menu of veterinary services and the coresponding cost of each senvice. (2 pts)<br>Ex:<br>Cool Paws Vet<br>Exam: $45<br>Vaccinations: $32<br>Trim Nails: $8<br>Bath: $15<br>(2) Prompt the user for two services from the menu. (2 pts)<br>Ex<br>Select first service:<br>Exam<br>Select second service:<br>Irim Nails<br>(3) Output an invoice for the services selected. Output the cost for each service and the total cost. (3 pts)<br>Cool Paws Vet Invoice<br>Service 1 - Exam: $45<br>Service 2 - Trim Nails: $8<br>Total: $53<br>(4) Extend the program to allow the user to enter a dash (-), which indicates no second service. (3 pts)<br>Ex:<br>Cool Paws Vet<br>Exam: $45<br>Vaccinations: $32<br>Trim Nails: $8<br>Bath: $15<br>Select first service:<br>Bath<br>Select second service:<br>Cool Paws Vet Invoice<br>Service 1 - Bath: $15<br>Service 2 - None<br>Total: $15<br>LAB<br>4.11.1: Program Veterinarian Billing<br>0/10<br>ACTIVITY<br>

Extracted text: 4.11 Program: Veterinarian Billing This program requires you to create a simple program that will generate invoices for veterinary services. The requirements are: (1) Output a menu of veterinary services and the coresponding cost of each senvice. (2 pts) Ex: Cool Paws Vet Exam: $45 Vaccinations: $32 Trim Nails: $8 Bath: $15 (2) Prompt the user for two services from the menu. (2 pts) Ex Select first service: Exam Select second service: Irim Nails (3) Output an invoice for the services selected. Output the cost for each service and the total cost. (3 pts) Cool Paws Vet Invoice Service 1 - Exam: $45 Service 2 - Trim Nails: $8 Total: $53 (4) Extend the program to allow the user to enter a dash (-), which indicates no second service. (3 pts) Ex: Cool Paws Vet Exam: $45 Vaccinations: $32 Trim Nails: $8 Bath: $15 Select first service: Bath Select second service: Cool Paws Vet Invoice Service 1 - Bath: $15 Service 2 - None Total: $15 LAB 4.11.1: Program Veterinarian Billing 0/10 ACTIVITY
LAB<br>4.11.1: Program: Veterinarian Billing<br>0/10<br>ACTIVITY<br>main.py<br>Load default template...<br>2 ## Type your code here<br>3 ##<br>4 import math<br>6 ##Dictionary of veterinary services and cost per pound<br>8 coolPawsVet = {<br>'Exam': 45,<br>'Vaccinations': 32,<br>'Trim Nails': 8,<br>10<br>11<br>'Bath': 15<br>12<br>13 }<br>14<br>15 serviceOne = ('Select first service \n')<br>16 serviceTwo = ('Select second service : \n')<br>17<br>18 print('Cool Paws Vet Invoice')<br>19 print('Service 1' + 'serviceOne')<br>20 print('Service 2' + 'serviceTwo')<br>21 total=('serviceOne' + 'serviceTwo')<br>22 print(total)<br>

Extracted text: LAB 4.11.1: Program: Veterinarian Billing 0/10 ACTIVITY main.py Load default template... 2 ## Type your code here 3 ## 4 import math 6 ##Dictionary of veterinary services and cost per pound 8 coolPawsVet = { 'Exam': 45, 'Vaccinations': 32, 'Trim Nails': 8, 10 11 'Bath': 15 12 13 } 14 15 serviceOne = ('Select first service \n') 16 serviceTwo = ('Select second service : \n') 17 18 print('Cool Paws Vet Invoice') 19 print('Service 1' + 'serviceOne') 20 print('Service 2' + 'serviceTwo') 21 total=('serviceOne' + 'serviceTwo') 22 print(total)
Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here