Set up the minunit test framework - mortgage code, Computer Engineering

Assignment Help:

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));

  }

}


Related Discussions:- Set up the minunit test framework - mortgage code

Use verilog function to define the width of a multi-bit port, Can I use a V...

Can I use a Verilog function to define the width of a multi-bit port, wire, or reg type? Width  elements  of  ports,  wire  or  reg  declarations  require  a  constant  in  bot

How is secure sockets layer relied on the certificates, How is Secure Socke...

How is Secure Sockets Layer relied on the certificates? The Secure Sockets Layer standard is not a single protocol, but quite a set of accepted data transfer routines which a

Categorized the optimization transformations, Categorized Optimization tr...

Categorized Optimization transformations The structure of program and the way in that data is defined and used in this provide vital clues for optimization. Optimization t

How a java program compiles, How a Java program compiles? First sou...

How a Java program compiles? First source file name should be extended with .java extension. For example Myprog.java Execute javac compiler. javac compiler creates

Explain the working of a 4-bit SISO shift register, Using D-Flip flops and ...

Using D-Flip flops and waveforms explain the working of a 4-bit SISO shift register. Ans. Serial In-Serail Out Shift Register: Fig.(a) demonstrates a 4 bit serial in-serial out

Explain ai applications, AI Applications Search is a important elemen...

AI Applications Search is a important element of an AI system, and search functions are executed on huge quantities of complicated structured data by means of unstructured in

Algorithm, i need algorithm for padovan string

i need algorithm for padovan string

Digital Design, Design a serial 2’s complementer with a shift register and ...

Design a serial 2’s complementer with a shift register and a flip-flop

Explain the role of a bus arbiter in a multiprocessor, Explain the role of ...

Explain the role of a bus arbiter in a multiprocessor configuration. Bus arbiter: Which functions to resolve priority between bus masters and allows only one device at a time t

What is game playing ai, This covers a number of game playing methods, nota...

This covers a number of game playing methods, notably checkers and backgammon because so much good research has been completed on these problems and because so many different metho

Write Your Message!

Captcha
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