Okay, the only thing left to do in this lecture is a full test of our application. So let's run the application by Thawne. And the path to the file in my case, D calculator dot p y. And now let's choose each of these options in order and test if the result is indeed correct for each of them. So first, let's start with addition. So options zero, first value 10, second value 20.
And the result is 30. Correct. Let's hit y to return to the main menu. Now subtraction, option one, let's try 40 and the second value 20. And the result is of course 20. Back to the menu, multiplication, option number 210 times 30 is 300.
Okay, division So option three, let's try seven divided by two 3.5, of course, correct. Back to the menu module, option number four, for value 10, second value three, and the result is one because one is the remainder of dividing 10 by three, back to the menu, raising to a power option number five. Let's try 10 to the power of three is 1,000th. Okay, next square root. So this would be option number six, enter the value for extracting the square root, let's say 100. And the result should be of course 10.
Let's try it. And indeed it is. Back to the menu. It's time for a logarithm. So option number seven, enter the value for calculating the logarithm to base two. So let's try eight.
And the result is of course three because two to the power of three is eight. Why To return to the main menu. Now let's try the trigonometric functions sine. So option number eight. And before we enter a value, let's open up the trigonometric table to check our results. So let's try sine of 40 degrees, the result is 0.64 to seven.
Let's check this. So, indeed, for 40 degrees, we have 0.64 to eight rounded up, which is correct. Okay, let's get back to the main menu. Let's try cosine. So option number nine, enter the value in degrees for calculating the cosine, let's say 30 degrees, and the result is 0.866. Let's check this for 30 degrees.
The cosine is the one in the second column, and indeed we have the same result. So correct again. And finally, let's try the tangent as Well, option 10, let's say for 25 degrees, the result is 0.466. And now let's check the table. So for 25 degrees, the result is indeed for tangent 0.466 in the third column of this table. Okay, so our application works exactly as intended.
And to be honest, the menu looks pretty nice as well. So I hope you enjoyed building this calculator alongside me. In the next lecture, you are going to be able to download the entire code of this application. You can of course improve it, modify it, enhance it in any way, shape, or form. But the most important thing here is that you already built your first application in Python three, and I really congratulate you for that.