This week we only had four days of class because our whole grade had to write a literacy test on Thursday. This week we had a lesson on Visual Basic operators and we had a big program that we spent all week on. The lesson on Visual Basic Operators included arithmetic operators, comparison operators and logical operators. We also learned that the symbol in an operation is an operator and that the variable or value in the operation is called an operand.
This program was a program that calculated the weekly payroll of a worker by using the information retrieved from them (hours worked and cups sold). We had to write the program using all the new controls we learned. On Wednesday, when the majority of the class finished, we had to add a menu and two dialog boxes so that the user could enter their own hourly rate and tax rate. This week I finished the program and the program works properly.
I had a few problems this week; they were all surrounding the dialog boxes. One of my problems was the placing of the code in the dialog box, I later figured out that the code had to be between the two lines. Another problem was getting the Form1 window to read the entered information from the dialog boxes. Before the code I had written was: dlgTaxRates.Show(), but after I just changed it to: dlgTaxRates.ShowDialog() and it began to work properly. Next week we are starting our first project in partners and creating a program on our own.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment