Creating a file reader

Assignment Help Basic Computer Science
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

Reference no: EM13762247

Questions Cloud

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

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Wearable computing technology

A REPORT OF WEARABLE COMPUTING TECHNOLOGY IN RESOLVING TIME SHEET ISSUES FOR PAYROLL SYSTEM INPUT TO THE CEO

  Write overall approach when application developer needs data

Describe overall approach when application developer needs to show in form data from the database table

  Discuss the points and tabulate the strengths and weakness

Please discuss the points and tabulate the strengths and weaknesses

  Network lan and the wan links

Use VLSM to configure the given network LAN and the WAN links. VLSM must be used in the MOST efficient way to subnet the LAN and the WAN links. All the links between routers are WAN links.

  Kinds of system-building methods used by dorfman

Recognize the kinds of system-building methods used by Dorfman to create its wireless warehouse system. Explain the methodologies you would recommend

  Best describes the existing state of communications

Organizational Systems security: Define the communication model that best describes the existing state of communications at your company and leverage that model to identify the weaknesses/points of failure in the existing system

  Create a stored procedure

The procedure must insert the next of kin information into the Next of kin table by looking up the student id from the Student table. (will you need a schema? how do I send it to you?) can you use just the tables for the student and next of kin?

  Advantage to process the data

You can write your program to next the loops in either direction, that is, process row by row or column by column. Explain which way you would choose to process the data. What is the advantage?

  Explaining why facebook-s design is different

Why is Facebook's design different? Or has Google merely perfected something that most organizations have just now started to "tackle"?

  Find the error in the following pseudocode

Find the error in the following pseudocode. Constant Real GRAVITY = 9.81 Display "Rates of acceleration of an object in free fall:"

  Find the fraction of the conversion

Hint: use the logical operators to combine the 3 pins into one number, then divide that number by 8 (23) to find the fraction of the conversion and multiply that by 5V which would be the Arduino operating voltage.

  Explain business scenario and specify types of constraints

Explain a business scenario and specify the types of constraints that would be appropriate to make sure the integrity of the database. For example, an airline reservation system should not make a reservation.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd