Hi, I need help with my program and logic Homework. Here is the problem:

Velma and her husband Victor run a full service veterinary clinic. They would like a program to help them calculate costs for their clients. Victor, who is the vet, charges a flat fee of $100 for medical services and a flat fee of $50 for shots. Velma does the grooming. She charges a flat fee of $20 to groom dogs, except for poodles. She charges an extra $15 for poodles. She charges $40 to bathe cats. Velma and Victor also board animals at the clinic. The fee to board a cat is $15/day. A small dog is $20/day. A large dog is $25/day. Velma encourages owners to have their pets groomed while they are being boarded. (Dogs sometimes start to smell after a few days in the kennel, so it's really nice to give them a good bath before the owners pick them up.) In order to entice people to do this, Velma offers a discount for the combination of grooming and boarding. This discount is calculated based on the length of time in the kennel. If they were boarded for 3 days or less, the discount is 10% off the grooming. If they were boarded more than 3 days, then it is a 20% discount. Many times people bring in more than one of their pets at the same time, so make sure the program loops back up if they have more animals. (Hint: Notice the loop here.) The program should print out the total amount for the pet owner.

To solve this problem, we need to calculate the total cost for the services provided by Velma and Victor for each pet. Here's an algorithm that outlines the steps:

1. Start by initializing the total cost variable to 0.
2. Ask the user for the number of pets they want to calculate the cost for.
3. For each pet, ask the user for the type (dog or cat), size (small, large), and number of days for boarding.
4. Check if the pet is a poodle:
- If it is a poodle, add $15 to the total cost.
- If it's not a poodle, add $20 to the total cost for grooming.
5. Check if the pet is a cat:
- If it's a cat, add $40 for bathing.
- If it's a dog, ask the user for shots (yes or no):
- If the dog needs shots (yes), add $50 to the total cost.
6. Calculate the boarding fee based on the pet's size:
- If it's a cat, add $15 multiplied by the number of days.
- If it's a small dog, add $20 multiplied by the number of days.
- If it's a large dog, add $25 multiplied by the number of days.
7. Check the length of boarding:
- If the number of days is 3 or less, calculate the grooming discount as 10% of the grooming cost.
- If the number of days is more than 3, calculate the grooming discount as 20% of the grooming cost.
8. Subtract the grooming discount from the total cost.
9. Print the total cost for the pet owner.
10. Repeat steps 3-9 for each pet.

Here's a high-level overview of the pseudocode:

```
total_cost = 0
num_pets = prompt for the number of pets

for each pet in num_pets:
pet_type = prompt for pet type (dog or cat)
pet_size = prompt for pet size (small or large)
boarding_days = prompt for number of boarding days

if pet_type == 'dog':
shots_needed = prompt for shots needed (yes or no)

if pet_type == 'dog':
if pet_size == 'small':
total_cost += 20 * boarding_days
else if pet_size == 'large':
total_cost += 25 * boarding_days
else if pet_type == 'cat':
total_cost += 15 * boarding_days

if pet_type == 'dog':
if shots_needed == 'yes':
total_cost += 50

if pet_type == 'dog':
if pet_size != 'poodle':
total_cost += 20
else if pet_size == 'poodle':
total_cost += 35

if boarding_days <= 3:
total_cost -= total_cost * 0.1
else if boarding_days > 3:
total_cost -= total_cost * 0.2

print total_cost
```