Answered step by step
Verified Expert Solution
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 Shorthop between and
Longjourney from to and Middle
Distance inbetween. The total length of the toll road is
The tolls are charged on the following basis:
Motor Cars pay for shorthop journeys, for middledistance
journeys, and for long journeys.
Goods vehicles pay for shorthop joumeys, for middle
distance journeys, and 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 motorcars, goodsvehicle and the journey
length as an integer.
It is assumed that the minimum journey length will be at least
once they vehicle enters the toll road. The maximum
possible journey length is Any journey lengths outside
the values are treated as error inputs and the program returns a
value of
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.
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