Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(b) The car dealership only sells cars that have fewer than 10000 miles and are 5 years old or less. (i) Write an algorithm

    

(b) The car dealership only sells cars that have fewer than 10000 miles and are 5 years old or less. (i) Write an algorithm that will: ask the user to enter the number of miles and the age of a car validate the input to check that only sensible values that are in the given range are entered output True if valid data has been entered or False if invalid data has been entered. [5] (ii) The validation routine from part (b)(i) must be tested with normal, erroneous and boundary test data. Identify suitable test data for each type of test. Normal Erroneous Boundary Miles (iii) Identify when iterative testing is performed. Age [3]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

b Algorithm to Validate Car Data 1 Initialize validData as False 2 Repeat the following steps until ... 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

Organic Chemistry

Authors: Francis A. Carey

4th edition

0072905018, 978-0072905014

More Books

Students also viewed these Computer Network questions

Question

Test the series for convergence or divergence. 00 1 n=1 2n + 1

Answered: 1 week ago

Question

4. How does a sex-linked gene differ from a sex-limited genepg99

Answered: 1 week ago