After we got familiar with Qt Creator environment in the lesson 2 we will build a simple calculator in order to get familiar with some data types which come with Qt Creator framework like QString and other C++ primitive data types. First of all we need to create a new project as shown in the lesson 1 . During the creation, instead of mainwindow class we have used calculator class. After creating the project, in design view of qt creator we create the layout of our application. Initially we get a LineEdit element from the toolbox panel as shown in the figure 1. Figure 1: Add LineEdit on window After we add the line edit on window we fix the size according to our needs, in this case we fill the window horizontally by leaving some margin right and left. After we add the LineEdit element on window we need to add the buttons for the numbers and operations as well as shown in the figure 2. Figure 2: Add PushButton on window After we add the buttons as shown in the figure above we ...
do while loop Same as the while loop, shown in the lesson 5 , there are other loops which make possible to repeat an action or a set of actions. In this lesson we will cover the do while loop. In the main method which in the previous lesson was as follow: Example code: public static void main(String[] args) { // TODO code application logic here Scanner scanner = new Scanner(System.in); double nr1=0; double nr2=0; String operation; double result =0; while( true ){ System.out.println("**********NEW OPERATION*********"); System.out.println("Give the first number: "); nr1= scanner.nextDouble(); System.out.println("Give the operation: "); operation = scanner.next(); System.out.println("Give the second number: "); nr2= scanner.nextDouble(); if(operation.equalsIgnoreCase("+...
Software development, especially software management are difficult processes, because this processes involve people. Why are we people such a difficult factor to manage? How does SCRUM helps improve this process? It is difficult to plan a project properly because of the impediments, which have allays as the root cause, us, the people. If we would be predictable, everything could have been planned in the smallest detail. We create impediments for other teams or even members of the same team and other teams or members of our team create impediments for us. How can the process be improved here? Can we improve ourself? Like we program the machines, our parents, our friends, our family, the society programs us. In order to improve ourself without being addicted from commodities of the society, we need to isolate ourself and be focused, but in that case the life would not be fun anymore without interaction. So improving ourself is a difficult process, because we have some patterns pro...
Comments
Post a Comment