Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Software Engineering Expert

Select a criteria-based testing strategy for the Java program Software Program in this unit's media.

You may choose to refresh your memory about how this program works by reviewing the Program Descriptions document.

Review the NetBeans Download and Testing Instructions for Java Program for an illustration of how run a test using JUnit.

Design tests based on the chosen strategy for the Java program and run the tests using JUnit.

Write a 4- to 6-page report on the testing exercise.

In your report, include the following points:

Explain the criteria-based testing strategy you chose.

Explain the designs of the tests that you ran.

Explain the failures that you found through testing. Identify and explain the errors in the source code of the software program.

Note: You do not have to correct the errors.

Program Descriptions

This document describes the mode of working of the Java programs that you will be testing during this course

Description of Software Program for Weeks 2, 3, and 4

The program will accept an arbitrary string of up to 1,000 characters. The user can choose one from among six options:

Option 1) Break the string into substrings (words) using spaces as separators
example
input: tremendous humongous result: tremendous
humongous

Option 2) Count the number of characters, numeric digits, alphabetic characters, and other characters (includes space).
example
input: The 4 ducks quacked 9 times, then flew! result: Alphabetic: 28
Numeric: 2
Other: 9

Option 3) Invert the string.
example
input: ridiculous result: suolucidir

Option 4) Count the number of occurrences of each unique word. Spaces and punctuation characters should be used as separators.
example
input: The vending machine had three diet drinks, three chocolate bars, and three granola bars. The drinks cost one dollar, and the bars cost 75 cents.
result: 3 three
3 bars
2 cost
2 drinks
2 and
2 The
1 vending
1 diet
1 the
1 one
1 machine
1 had

1 granola
1 dollar
1 chocolate
1 cents

Option 5) Convert all vowels that are in lowercase to uppercase. Convert all consonants that are in uppercase to lowercase.
example
input: The Box was Gray! output: thE bOx wAs grAy!

Option 6) Convert all alphabetic characters to lower case.
example
input: Chicago, IL, USA result: chicago, il, usa

Description of Modified Software Program for Week 6

In the initial program, options 1 and 4 used a space as a separator. The modified version of the program lets the user provide a character, which is used as a separator.
Example (for option 1)
input string: vehicle#hybrid car#sports car#minivan#truck#limousine input character: #
result: vehicle
hybrid car sports car minivan truck limousine

NetBeans Download and Testing Instructions for Java Program

The following steps will guide you to install NetBeans IDE with JUnit, to open the concerned project on which you will run tests during Units 2, 3, and 4 of this course, and to initialize running the project

1) Visit the NetBeans Download page:

2) Download the JDK with NetBeans IDE Java SE bundle, at the bottom of the following screenshot and circled around to your computer:

3) You will reach the following screen. Click the Accept License Agreement button.

4) Download the bundle for Windows x86. The download will require several minutes.

5) Run the downloaded package to install it. When you arrive at the following screen, click the first button to install JUnit and click Next.

6) Uncheck the Contribute to the NetBeans project by providing anonymous usage data and click Finish.

7) Download and unzip the file Software Program.zip from this unit's Learning Resources.

This will create a folder Software Program containing a NetBeans Project with the java program. Note the location of this folder.

8) Launch the NetBeans IDE. Upon launching for the first time, you will probably see the following screen. Close the screen by clicking on the Start Page tab on the top left-hand corner.

9) Click on the File drop-down menu, select Open Project, and click.

10) Navigate to the project folder Software Program, select it, and click on Open Project.

11) The concerned project should now appear on the Projects pane on the left.

12) The Java program with the six options should now appear on the Output pane on the right.

13) Increase the size of the Output pane by dragging the top margin up.

14) Bring the cursor at the bottom of the 6th option and type the option number you wish to test. Here, option 1 is typed. Once you enter the number, hit Enter or Return key in your keyboard. You will be asked to enter an input string upto 1,000 characters.

15) Based on your test design, enter the appropriate input and hit Enter or Return key in your keyboard to display the results.

Attachment:- NetBeans Download And Testing Instructions.rar

Software Engineering, Computer Science

  • Category:- Software Engineering
  • Reference No.:- M92766914
  • Price:- $60

Guranteed 36 Hours Delivery, In Price:- $60

Have any Question?


Related Questions in Software Engineering

Assignment lab - statement of workclient liberty vacation

Assignment Lab - Statement of Work Client: Liberty Vacation Planning Inc. (LVP) Project: Website Assessment 1. Project Objectives With this statement of work, LVP is engaging you to conduct a website assessment to determ ...

Assignment part 1objectives to learn to identify the

Assignment Part 1 Objectives: To learn to identify the relevant use cases for a given application, describe the use cases and develop an object-oriented domain model. Problem Statement - Standing Orders Management System ...

Write reply to this article with references with apa

Write reply to this article with references with APA bibliography. Hate Crimes Over the past couple of years, hate crimes have been on the rise in America's largest cities. Studies show that there were sharp spikes in th ...

Write review on this article with apa formatalthough

Write review on this article with APA format. Although computer crimes are being seen in our society more and more each day, it is still difficult to prosecute people who commit these crimes mainly because everything is ...

In this assignment you will answer the following questions

In this assignment, you will answer the following questions related to Android platform and Android security design. 1. Describe Android architecture in detail by explaining the four conceptual layers. 2. Describe Androi ...

Research projectin the course we have covered various

RESEARCH PROJECT In the course, we have covered various security and privacy issues that arise in the cyberspace field. We have learned to identify these risks and have discussed the current approaches and developments f ...

Overviewyou are required to modify and logically extend

Overview You are required to modify and logically extend the functionality of a provided code base to implement a game. This requires you to modify the code base as well as create documentation and implement various user ...

Proposaldesign of an efficient gps tracking system tag for

Proposal Design of an efficient GPS Tracking System (tag) for monitoring small species IMPLEMENTING EMBEDDED SYSTEMS USING SYSML Task Using PapyrusSysML Software (Downloadable online - Evaluation Copy- Latest Version) Mo ...

Reply to this article with apa referencehate crimes

Reply to this article with APA reference. Hate crimes According to Merriam-Webster, hate crime is any of various crimes (such as assault or defacement of property) when motivated by hostility to the victim as a member of ...

In this assignment you will answer the following review

In this assignment, you will answer the following review questions from the reading materials of the module/week. 1. "What are the key components of a typical P2P application? Describe their functions." 2. "What are the ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As