You are to create a Python application that applies the basic concepts in Python. Scenario: You are to create a python application that simulates a toll booth that will give out toll booth tickets to the driver depending on what type of vehicle they are driving. The user will enter their name, destination and vehicle type. The application will then determine what class of vehicle they are driving and assign them the correct fee. The application is to then print out a receipt with the user's name, destination, vehicle class and correct fee. The vehicle types along with their associated vehicle class are listed below: Class 1 Vehicle Car Jeepney Van Pickup Motorcycle Class 2 Vehicle Bus Truck Class 3 Vehicle Tanker Trailer Your application will initially ask for the following information when it is started: The name of the user The destination of the user The type of vehicle for the user The application will assign specific fees depending on the class of vehicle that is passing through the toll booth. Class 1 Vehicles will be given a fee of 0 PHP, Class 2 Vehicles will be given a fee of100.00 PHP, and Class 3 Vehicles will be given a fee of 150.00 PHP. The application must check if the vehicle type entered is valid, if it is valid, the application will proceed, otherwise, the user will have to re-enter the vehicle type. Your application will then print out a receipt with the following information as the output: The name of the user The destination of the user The vehicle class of the user The toll booth fee for the user
You are to create a Python application that applies the basic concepts in Python. Scenario: You are to create a python application that simulates a toll booth that will give out toll booth tickets to the driver depending on what type of vehicle they are driving. The user will enter their name, destination and vehicle type. The application will then determine what class of vehicle they are driving and assign them the correct fee. The application is to then print out a receipt with the user's name, destination, vehicle class and correct fee. The vehicle types along with their associated vehicle class are listed below: Class 1 Vehicle Car Jeepney Van Pickup Motorcycle Class 2 Vehicle Bus Truck Class 3 Vehicle Tanker Trailer Your application will initially ask for the following information when it is started: The name of the user The destination of the user The type of vehicle for the user The application will assign specific fees depending on the class of vehicle that is passing through the toll booth. Class 1 Vehicles will be given a fee of 0 PHP, Class 2 Vehicles will be given a fee of100.00 PHP, and Class 3 Vehicles will be given a fee of 150.00 PHP. The application must check if the vehicle type entered is valid, if it is valid, the application will proceed, otherwise, the user will have to re-enter the vehicle type. Your application will then print out a receipt with the following information as the output: The name of the user The destination of the user The vehicle class of the user The toll booth fee for the user
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 8RA
Related questions
Question
- You are to create a Python application that applies the basic concepts in Python.
- Scenario: You are to create a python application that simulates a toll booth that will give out toll booth tickets to the driver depending on what type of vehicle they are driving. The user will enter their name, destination and vehicle type. The application will then determine what class of vehicle they are driving and assign them the correct fee. The application is to then print out a receipt with the user's name, destination, vehicle class and correct fee.
- The vehicle types along with their associated vehicle class are listed below:
- Class 1 Vehicle
- Car
- Jeepney
- Van
- Pickup
- Motorcycle
- Class 2 Vehicle
- Bus
- Truck
- Class 3 Vehicle
- Tanker
- Trailer
- Your application will initially ask for the following information when it is started:
- The name of the user
- The destination of the user
- The type of vehicle for the user
- The application will assign specific fees depending on the class of vehicle that is passing through the toll booth. Class 1 Vehicles will be given a fee of 0 PHP, Class 2 Vehicles will be given a fee of100.00 PHP, and Class 3 Vehicles will be given a fee of 150.00 PHP.
- The application must check if the vehicle type entered is valid, if it is valid, the application will proceed, otherwise, the user will have to re-enter the vehicle type.
- Your application will then print out a receipt with the following information as the output:
- The name of the user
- The destination of the user
- The vehicle class of the user
- The toll booth fee for the user
- Class 1 Vehicle
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L