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

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 8RA
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.
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L