write a program that performs a survey tally on vehicle. The program should prompt for the next person until a sentinel value of -1 is entered to terminate the program. Each person participating in the survey should choose their favorite from the following list-toyota,nissan,vw,honda,mazda

Sure! Here's a Python program that performs a survey tally on vehicles:

```python
# Initialize a dictionary to store the survey results
survey_results = {
"toyota": 0,
"nissan": 0,
"vw": 0,
"honda": 0,
"mazda": 0
}

# Prompt for the next person until the sentinel value is entered
while True:
favorite_vehicle = input("Enter your favorite vehicle (or -1 to terminate): ")

# Check if the sentinel value is entered
if favorite_vehicle == "-1":
break

# Check if the favorite vehicle is from the given list
if favorite_vehicle.lower() in survey_results:
# Increment the tally for the chosen vehicle by 1
survey_results[favorite_vehicle.lower()] += 1
else:
print("Please enter a valid vehicle from the list.")

# Print the survey results
print("Survey Results:")
for vehicle, count in survey_results.items():
print(vehicle.capitalize(), ":", count)
```

To run this program:

1. Open a text editor and create a new file.
2. Copy and paste the above code into the file.
3. Save the file with a `.py` extension (e.g., `survey_tally.py`).
4. Open a terminal or command prompt and navigate to the directory where you saved the file.
5. Run the program by executing the command `python survey_tally.py` (assuming Python is installed and added to the PATH environment variable).

The program will now prompt for each person's favorite vehicle. Enter the vehicle name (e.g., "toyota") and press Enter to submit. Keep entering vehicles until you want to terminate the program, in which case enter `-1`. The program will then display the survey results, showing the count of each vehicle chosen by the participants.