Presentation is loading. Please wait.

Presentation is loading. Please wait.

HW7(100pts+10bonus) The homework Due on May 11, 23:59:59

Similar presentations


Presentation on theme: "HW7(100pts+10bonus) The homework Due on May 11, 23:59:59"— Presentation transcript:

1 HW7(100pts+10bonus) The homework Due on May 11, 23:59:59
Part 1(10pts). Create a new Build Target. Right click your CodeBlock Project and click Properties.

2 Go to Build targets and click Add Button
Go to Build targets and click Add Button. The Build target name must be “UnitTest”

3 Change the type to “Console application” and choose “pause when execution ends.”
Output filename, please choose “bin\UnitTest\yourCBPFileName.exe” (if doesn’t exist, create a new folder yourself.) Output dir, please choose obj\UnitTest\

4 Part 2(10pts). Create a new source file named utmain.cpp
Choose the build target “UnitTest” that you create in part 1.

5 Part 3(10pts). Setting Build Target and move the test code
Right click your CodeBlock Project and click Properties. Go to Build targets and choose UnitTest. Select all the build target file except main.cpp.

6 Move the code from main.cpp to utmain.cpp
Change the target to UnitTest, and then run your program. You should see the test result.

7 Part4(30pts).Design UI In main.cpp, you need to design an UI that user can input a String that system output an inverse Matrix. So you should change the code in inverseByGaussJordan() , and return A-1 You can input Matrix string or Q to exit the system. If you input a matrix string (for example “[0 2 2],[2 2 6]”),you will get an inverse matrix and the system will ask you to input another string or quit the system.

8 Flow chart looks like this

9 Part 5(20pts).New methods and Unit tests
Please implement two methods toString() and stringToMatrix(string &) toString() is to transform the Matrix to string stringToMatrix() is to transform string to Matrix You have to write at least one unit test for each method

10 Part 6(20pts). We wrote 13 unit tests to test the methods of Matrix
Part 6(20pts). We wrote 13 unit tests to test the methods of Matrix.h you wrote. The test data will not be announced. You have to make all of them pass. You know this by checking Reports on Jenkins.

11 Part 7(bonus 10pts). We wrote a test for your user interface , If you pass the test, you’ll get 10 points for bonus. The test data will not be announced. You have to make all of them pass. You know this by checking Reports on Jenkins. Test by


Download ppt "HW7(100pts+10bonus) The homework Due on May 11, 23:59:59"

Similar presentations


Ads by Google