$ mkdir ~/cs170/tests $ mkdir ~/cs170/tests/test2 $ cd ~/cs170/test/test2
This portion of the test is worth 29 total points. In addition to this file, you may only access the Python documentation website and the Qt documentation documentation website. NO OTHER WEBSITES ARE PERMITTED. You are also not allowed to access any personal files in your CS account. As usual, you are not allowed to directly copy any code from the Internet or another individual. You should also follow all coding standards discussed thus far.
Make sure you place these new QT projects in your test 2 directory!
Create a QT class which has two text inputs on the page. It should allow the user to type information into both of these text input fields, and press a button. If the text entered into each field is the same, you should put the word "Valid" somewhere on the QT window. If the text entered is not the same, you should put the word "Invalid."
(10 points)
Create a QT class which displays an 8 x 8 grid of colored squares on the QT window. The squares should be arranged in a checkerboard fashion.
(10 points)
In a file called sorted.cc, write a function
bool bubble(int * array, int size)
. This function
should sort IN PLACE the specified array using the
bubble sort algorithm.
(9 points)
When you have finished, create a tar file of your test1
directory. To create a tar file, execute the following commands:
cd ~/cs170/tests tar czvf test2.tgz test2/
To submit your activity, go to inquire.roanoke.edu. You should
see an available assignment called Test 2
.
Make sure you include a header listing the authors of the file.