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

What is the last entry in all bdc tables, What is the last entry in all BDC...

What is the last entry in all BDC tables? In all BDC tables the last entry is to save the data by using the field name BDC_OKCODE and a field value of '/11'.

State about dynamic modelling and its inputs, State about Dynamic modelling...

State about Dynamic modelling and its inputs Dynamic modelling is elaborated further by adding concept of time: new attributes are computed, as a function of the attribute chan

Operations of a scientific calculator, A program is to be developed to simu...

A program is to be developed to simulate the operations of a scientific calculator. List the facilities to be provided by this calculator. Analyze this using a DFD 0- level and 1-

Research methods, Building on their knowledge of research methods and their...

Building on their knowledge of research methods and their interest in a particular aspect of information technology this assessment enables students to put this knowledge into prac

Classify scheduler, Classify Scheduler. Scheduler is a kernel function ...

Classify Scheduler. Scheduler is a kernel function decide which method  be  thought to be implemented by the processor: the scheduler scans the list of processes in the ready s

Programming with parallel virtual machine, Q. Programming with parallel vir...

Q. Programming with parallel virtual machine? The general method for writing a program with PVM is like this:  A user writes one or more sequential programs in C++, C or FOR

Baic electrical, Ask question #Minimumstate and explain thevenins theorem a...

Ask question #Minimumstate and explain thevenins theorem as applicable to electrical circuits 100 words accepted#

Explain about RISC pipelining, Q. Explain about RISC PIPELINING? Instru...

Q. Explain about RISC PIPELINING? Instruction pipelining is frequently used to increase performance. Let's consider this in context of RISC architecture. In case of RISC machin

Assessing heuristic searches-artificial intelligence, Assessing Heuristic S...

Assessing Heuristic Searches Given a specific problem you want to create an agent to solve, there can be more than one way of specifying it as a search problem, more than one o

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