Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

13th Edition Global Edition

1292263350, 978-1292263359

More Books

Students also viewed these Databases questions

Question

2. Identify issues/causes for the apparent conflict.

Answered: 1 week ago