Reference no: EM13762247
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
Ethics case-magnetic toys can hurt
: Mega Brands has been selling Magnetix toys for many years. It also sells Mega Bloks, construction toys based on Spider-Man, Pirates of the Caribbean, as well as other products in over 100 countries.
|
Corporations and professional accountants
: What are philosophy approaches to ethical decision making relevant to modern corporations and professional accountants?
|
Narrows the spectrum to the mean-median
: Trend forecasters, sometimes called "futurists," use three "P's": Possible, Probable, and Plausible. "Possible" includes the "outliers" on the classic bell curve. "Probable" narrows the spectrum to the mean, median, and mode at the top of the be..
|
Write a book review of macbeth
: Write a Book review of Macbeth.
|
Creating a file reader
: The program begins by creating a File Reader object and a BufferedReader object to read the file terms.txt.
|
Soil infiltration and runoff problem
: The smooth mountain rock surface type affect the amount of runoff.
|
What contribution would you like to make
: How would you like to affect the history of education? What contribution would you like to make? What do you hope you are remembered for?
|
Explain the importance of competition among firms
: Explain the importance of competition among firms and Explain whether the competitive environment in this industry benefits society or not.
|
Develop a conversion strategy
: Implementing Target was a major undertaking for a number of reasons. If you were an analyst on the project, what kinds of issues would you have to address to make sure the conversion happened successfully
|