Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( b ) The national road Toll Company publish their tariffs for their automatic tolling system around the country. The toll charge is based on

(b) The national road Toll Company publish their tariffs for their
automatic tolling system around the country. The toll charge is
based on the vehicle type and the distance covered. There are
two types of vehicles that use the toll: motor cars and goods
vehicles. The distance categories are Short-hop (between 1 and
150km), Long-journey (from 401km to 500km), and Middle-
Distance in-between. The total length of the toll road is 500Km.
The tolls are charged on the following basis:
Motor Cars pay 1 for short-hop journeys, 2 for middle-distance
journeys, and 3 for long journeys.
Goods vehicles pay 7 for short-hop joumeys, 9 for middle-
distance journeys, and 10 for long journeys.
A computer program is to be written to (a) calculate and output
the toll cost. The program inputs are the enumerated values of
vehicleType motor_cars, goods_vehicle} and the journey
length as an integer.
It is assumed that the minimum journey length will be at least
1km once they vehicle enters the toll road. The maximum
possible journey length is 500km. Any journey lengths outside
the values are treated as error inputs and the program returns a
value of -1.
Using the fault model of Boundary Value Analysis write out the
Test Coverage Items and the Test cases, producing a table that
shows the Test Coverage Items covered by each test.
image text in transcribed

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

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago

Question

9. Power and politics can be destructive forces in organizations.

Answered: 1 week ago