Vehicles Waiting Count

Write a program that is to be used to count how many vehicles end up waiting at a river bridge that is raised when a boat needs to pass through. It should use a while loop to repeatedly ask the user to give the number of vehicles waiting. The user counts the vehicles each time the bridge is lowered. They then input the count when the bridge is raised. The program should stop when the special code ABC is entered instead of a number of passengers. The program should then give the average number of vehicles that had to wait at that timer. For example, one run might be as follows.

RIVER BRIDGE SURVEY
How many vehicles are waiting? 2
How many vehicles are waiting? 5
How many vehicles are waiting? 10
How many vehicles are waiting? 3
How many vehicles are waiting? 12
How many vehicles are waiting? 1
How many vehicles are waiting? 0
How many vehicles are waiting? ABC

The bridge was raised 7 times
A total of 33 vehicles had to wait.
An average of 5 vehicles had to wait each time.

Make sure you comment your program with comments that give useful information, use indention consistently and that your variable names convey useful information.

Multi-choice "Unbeatable" Style Quiz Program

Write a quiz procedural program where the player gets points based on choosing one of the given answers to a question. the aim is to choose an answer that is largest. An example might be: Who has had most UK Number 1 singles... 1. Madonna, 2. Queen, 3. Elvis, 4. Rihanna.) Here, the order is Elvis with most (21), then Madonna (13), then Rihanna (9) then Queen (6) so answering Elvis gets 10 points, answering Madonna gets 5 points, answering Rihanna gets 2 points and answering Queen scores 0.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.