Question
The company that manages an express has decided to change toll rates. These rates depend on the type of vehicle (truck, car or motor) you
The company that manages an express has decided to change toll rates. These rates depend on the type of vehicle (truck, car or motor) you want to use the motorway, the number of passengers you take, and the time of day. In the new system there will only be a toll booth at the end of the route. In times of high congestion, cars (or buses) with four or more passengers will pay half the rate, trucks will pay double. At less congested hours, the toll for cars is $10 and if you carry more than 4 passengers it is free. Motorists will pay $5 no matter what time of day. For trucks it is $15 regardless of the number of passengers. Write a program (as a flowchart and in pseudocode) that reads the type of vehicle, type of hour (if the time is high congestion or not) and the number of passengers, calculate the rate that you should charge a vehicle. If a vehicle results in damaged tire, the company will refund the toll amount. thanks in advance!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started