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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
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
}
}
Hello and Welcome to the Toll Booth for the Endless Road!
Please enter your information to proceed.
» Please enter your name:Davy Jones
>> Please enter your destination: Texas
» Please enter your vehicle type: Boat
Invalid vehicle type. Please try again.
>> Please enter your vehicle type: Truck
Toll Booth for the Endless Road - Official Receipt
OR NUMBER: 0781235534
-26
"Your destination is just nearby!"
26
»> Name: Davy Jones
>> Destination: Texas
>> Vehicle Class: Class 2 Vehicle
>> Toll Booth Fee: PHP 100.0
do
28
g
Transcribed Image Text:} } Hello and Welcome to the Toll Booth for the Endless Road! Please enter your information to proceed. » Please enter your name:Davy Jones >> Please enter your destination: Texas » Please enter your vehicle type: Boat Invalid vehicle type. Please try again. >> Please enter your vehicle type: Truck Toll Booth for the Endless Road - Official Receipt OR NUMBER: 0781235534 -26 "Your destination is just nearby!" 26 »> Name: Davy Jones >> Destination: Texas >> Vehicle Class: Class 2 Vehicle >> Toll Booth Fee: PHP 100.0 do 28 g
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Returning value from Function
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education