Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions

Question

=+1. Who will receive the final evaluation?

Answered: 1 week ago

Question

What is Constitution, Political System and Public Policy? In India

Answered: 1 week ago

Question

What is Environment and Ecology? Explain with examples

Answered: 1 week ago