The program begins by creating a file reader object and a


The program begins by creating a File Reader object and a BufferedReader object to read the file terms.txt. This comma-separated data file contains technical terms in five languages namely, English, Irish, Italian, Spanish and French and is in alphabetical ascending order on the English language entries. The following are two sample entries from this file.

OK, Ceart go leor, Attendere, Aceptar, OK Welcome, Fáilte, Benvenuti, Bienvenido, Bienvenue

This program allows the user to enter a word or phrase (it is assumed that this entry is a word or phrase of the English language). The program returns all equivalent translations of this word or phrase if it exists in the data file. For example, if the user enters the word welcome the program will display output similar to that shown in Figure A2.2. An appropriate message is displayed if the word or phrase is not found in this data file.

For the program you are required to complete the following:

(a) Write test cases to achieve 100% statement coverage of this program. For each test case you should write its test case number, its description, expected outcome and actual outcome.
(b) Draw a Control Flow Graph (CFG) for this program.
(c) Using your CFG write test cases to achieve
(i) 100% decision/branch coverage and
(ii) 100% condition coverage.
For each test case you should write its test case number, its description, expected outcome and actual outcome. In your answer you should identify whether a particular test case concerns decision/branch testing or condition testing

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: The program begins by creating a file reader object and a
Reference No:- TGS01032327

Expected delivery within 24 Hours