Question: This is a Software testing question The national road Toll Company publish their tariffs for their [ automatic tolling system around the country. The toll

This is a Software testing question This is a Software testing question The national road Toll Company publish

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 journeys, 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 vehicle Type={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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!