Question: Write the code in PYTHON 3. Write a program to count the number of vehicles and the amount of money collected at a tollbooth. The

Write the code in PYTHON 3.

Write the code in PYTHON 3. Write a program to count the

Write a program to count the number of vehicles and the amount of money collected at a tollbooth. The program should use a class named Register with instance variables for the number of vehicles processed and the total amount of money collected. One dollar should be collected for each car and two dollars for each truck. Provide a constructor and the following methods: setCount setTally getCount getTally ProccssCar ProcessTruck Be sure to define instance variables as needed by your "get"/"set" methods. sample Run: Enter type of vehicle (car/truck): car Number of vehicles: 1 Money Collected: $1.00 Do you want to enter more vehicles (Y/N)? Y Enter type of vehicle (car/truck): truck Number of vehicles: 2 Money Collected: $3.00 Do you want to enter more vehicles (Y/N)? N

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!