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.
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.