Identifying Test cases using Boundary value analysis and Equivalence partitioning
Objective: To identify and document test cases for a given functionality, using Boundary value Analysis and Equivalence partitioning technique.
Q1. Problem Description: Consider the function below whosefunctionality is described in its documentation.
/******************************************************************
* Method: computeInterestRate
* Description: Given the term of the deposit, computes and returns
* the interest rate. Both the parameters iNumberOfYears and
* iNumberOfMonths together form the term
*
* Criteria for Interest:
* Less than 3 months 1%
* 3 months to 5 months 3.5%
* 6 months to 11 months 4.5%
* 1 year to 1 year, 11 months 5.0%
* 2 years and above 5.5%
* PARAMETERS:
* int iNumberOfYears Number of years
* int iNumberOfMonths Number of months (if less than year).
* Can have values 1-11 only
*
* RETURNS: Appropriate Rate of Interest. -1.0 in case of error.
******************************************************************/
float computeInterestRate (int iNumberOfYears, intiNumberOfMonths) {
...
...
}
Complete java program:
public class InterestRateFinder {
public static void main(String[] args) {
//Creating the object of the class
and calling the method
InterestRateFinder object = new
InterestRateFinder();
System.out.println(object.computeInterestRate(2, 19));
}
//method implementation
float computeInterestRate(int iNumberOfYears, int
iNumberOfMonths) {
/*if number of months less than
1 and number of years less than or equal to 0
if number of months >11 and
number of years less than or equal to 0*/
if( iNumberOfYears <= 0
&& (iNumberOfMonths< 1 || iNumberOfMonths >
11))
return -1;
else if(iNumberOfMonths < 1 ||
iNumberOfMonths > 11) {
return -1;
}
else {
//calculate the
term
int term =
iNumberOfYears * 12 + iNumberOfMonths;
//conditions
if(term < 3)
{
return (float)1/100;
}else if(term
>=3 && term <=5) {
return (float)3.5/100;
}else
if(term>=6 && term<=11) {
return (float)4.5/100;
}else
if(term>=12 && term<=23) {
return (float)5/100;
}else
if(term>=24) {
return (float)5.5/100;
}
}
return -1;
}
}
Identifying Test cases using Boundary value analysis and Equivalence partitioning Objective: To identify and document test...
Objective In this assignment, you will practice solving a problem using object-oriented programming and specifically, you will use the concept of object aggregation (i.e., has-a relationship between objects). You will implement a Java application, called MovieApplication that could be used in the movie industry. You are asked to implement three classes: Movie, Distributor, and MovieDriver. Each of these classes is described below. Problem Description The Movie class represents a movie and has the following attributes: name (of type String), directorName...
DESCRIPTION You have to design an e-commerce shopping cart. These require classes Item, Electronics, Food, Dress, Cart and Main. ITEM CLASS Your Item class should contain: Attributes (protected) String name - name of the Item double price - price of the item Methods (public) void setName(String n) - sets the name of Item void setPrice(double p) - sets the price of Item String getName() - retrieves name double getPrice() - retrieves price String formattedOutput() returns a string containing detail of...
please help answer these Financial Analysis Exercise #1 You are the newest Financial Analyst in Investments, you need to demonstrate your prowess in Excel, your outstanding written skills and ability to communicate. Mr. Richards is the Executive Vice President and Chief Investment officer in your new firm. You are being asked to complete a series of “pet” projects for Mr. Richards. You have been told not to try to impress him, just do the work and stick to the facts....
SOLVE USING C!!!
Project objective: Conditional statements,
loops, reading from file, user defined functions.
**Submit source code (LargeProg1.c) through
Canvas
One source code file(unformatted text) will be submitted
Here is INCOMPLETE code to get started: LargeProg1.c
The file name must match the assignment
The code should be tested and run on a Microsoft compiler
before it is uploaded onto Canvas
The code must be submitted on time in order to receive credit
(11:59PM on the due date)
Late submissions will...
Objectives Develop an ability to identify and assume an assigned role. Identify and rank the importance of explicit issues. Illustrate the importance of hidden (undirected) issues that arise from a detailed analysis. Identify accounting issues (GAAP/IFRS compliance issues), assess their implications, generate alternatives, and provide recommendations within the bounds of GAAP/IFRS to meet the client’s needs. Examine how accounting standards impact financial measures (ratios, covenants, etc.). Prepare a coherent report and integrated analysis that meets specific user needs. identifying the...
Using vertical analysis, prepare and Income Satement. (this is
all the infomation) (indirect method)
Robust Robots, Inc. Comparative Balance Sheet December 31, 2019 and 2018 2019 2018 Assets Current Assets: Cash Accounts Receivable, net Merchandise Inventory Supplies Prepaid Insurance Total Current Assets $ $ $ $ $ $ 65,000 150,000 135,000 9,700 30,000 389,700 $ $ $ $ $ $ 80,000 100,000 70,000 500 10,000 260,500 Property, Plant, and Equipment: Equipment Less: Accumulated Depreciation - Equipment Total Property, plant, and...
Help with java . For this project, you will design and implement a program that analyzes baby name popularities in data provided by the Social Security Administration. Every 10 years, the data gives the 1,000 most popular boy and girl names for kids born in the United States. The data can be boiled down to a single text file as shown below. On each line we have the name, followed by the rank of that name in 1900, 1910, 1920,...
starter code
To write a program using the starter code which is
TestLinkedList to see if the LinkedList program has bugs. It will
produce ether a pass or fail.More information is in the first two
pictures.
LinkedList.java
/**
* @author someone
*
* Implements a double-linked list with four errors
*/
public class LinkedList<E>
{
// The first and last nodes in the list
private Node<E> head, tail;
// Number of items stored in the list
private int size;
//...
Additional code needed:
PartA: BurgerOrder class (1 point) Objective: Create a new class that represents an order at a fast-food burger joint. This class will be used in Part B, when we work with a list of orders. As vou work through this part and Part B, draw a UML diagram of each class in using the UML drawing tool 1) Create a new Lab5TestProject project in Netbeans, right-click on the lab5testproject package and select New>Java Class 2) Call your...
Comparative Analysis Casemobivio de The Coca-Cola Company and PepsiCo, Inc. The financial statements of Coca-Cola and PepsiCo are presented in Appendices C and D, respectively. The companies' complete annual reports, including the notes to the financial statements, are available online. Stock price data can be found in the company's annual 10K, filed at the SEC. Instructions Use the companies' financial information to answer the following questions. a. What is the par or stated value of Coca-Cola's and PepsiCo's common or...