Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Set up the minunit test framework examples in your environment (i.e. build or compile the code). Once you can run the example, use the minunit test framework to create and run a boundary or equivalence partition test cases on the Mortgage example from class.

The code snippet from the class is on the scratch drive. Note that you may have to add some headers and other information to the basic snippet in order for it to compile properly.

The Mortgage code snippet should be a separate module (file) that needs to be compiled only once and then linked with your test case framework and test cases mainline.

Submit to perforce, the source code your created (mortgage module, test case mainline,...), a tar or zip of a working framework, the test mainline executable and a short test plan results document showing the cases you tested, and the results of the testing. The test cases could be the ones that you created for the in class assignment or similar ones for equivalence partitioning. Don't go overboard with test cases, but you should have at least four cases.

Note that you do NOT have to fix the mortgage code beyond what is needed to make it compile and run with your test framework.

You may setup and do this assignment under Linux, ARM Linux, or Windows.

Below is the Mortgage code fragment if you wish to cut and paste it into your modules.

int Mortgage (Boolean male, int age, int salary)

{

  if (male) {

    return ((18<=age<35)?(75*salary):(31<=age<40)?(55*salary):(30*salary));

  } else {        /* female */

    return ((18<=age<30)?(75*salary):(31<=age<40)?(50*salary):(35*salary));

  }

}

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9532657

Have any Question?


Related Questions in Computer Engineering

Question part 1 analyze the case study titled vodafone a

Question: Part 1: Analyze the case study titled "Vodafone: A Giant Global ERP Implementation" (below) For this assignment, you will need to: 1. analyze and discuss the central issue(s) faced by Vodafone, including the co ...

Hoping to lore more shoppers downtown he said he built a

Hoping to lore more shoppers downtown. He said he built a new public parking garage in central business district. The city plans to pay for the structure through parking fees. For a random sample of 44 weekdays, daily fe ...

Questions 1 what are the four parts of the administrative

Questions: 1. What are the four parts of the administrative simplification requirements of HIPAA? 2. Name three factors used to determine whether you need to comply with HIPAA. 3. What are the three categories of entitie ...

Research the web for an example of a startup using a cloud

Research the Web for an example of a startup using a cloud infrastructure. What were the main reasons for choosing a cloud infrastructure? What alternatives did the startup have? Answer should be at least 1 page long dou ...

A company is considering producing a new product based on

A company is considering producing a new product. Based on past records, management believes that there is a 70 percent chance that the new product will be successful, and a 30 percent chance it will not be successful. M ...

Given the following scenarios what is the standard

Given the following scenarios, what is the standard deviation for Acme, Inc.? Economy / Pri / Ri Strong / 0.3 / 40% Normal / 0.4 / 16% Weak / 0.3 / -20% Express your answer in decimal format (e.g., 0.1935 to represent 19 ...

Requirementsin this assignment you will implement a

Requirements In this assignment, you will implement a lightweight version of an ArrayList class. You may refer to the Java code and documentation for guidance, but you must write the implementation yourself. Additionally ...

Assignment 1 accessibilitybuilding a user interface that

Assignment 1: Accessibility Building a user interface that meets the needs of a diverse population can be incredibly difficult. Research the best practices for developing a universally usable interface, as well as some o ...

Part 1 prepare year 1 revenuesgo to the revenues tab and

Part 1: Prepare Year 1 Revenues Go to the Revenues tab and compute the total revenues for each customer and the total Cost of Goods Sold (COGS) for each client. Notice that there are two products. There is a quantity tal ...

Question sql is often presented a a single database

Question : SQL is often presented a a single database language, but some contend that it is a set of languages. Which is it, why do you say so?, Why is that important for you to understand? Support your answers. The resp ...

  • 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