Showing posts with label adding. Show all posts
Showing posts with label adding. Show all posts

Monday, 29 February 2016

How to Calculate Ean13 BarcodesIn Feburary 2016 29,

In Feburary 2016 29,
Locate the 12th digit in the barcode. If the check digit is not yet in place, this is the last digit from the left. If the check digit is in place, this is the second to last digit from the left.
For example, if your EAN-13 was 97 35940 56482 4, the 12th digit is the No. 2.
Starting with this 12th digit, move from right to left across the code adding every second digit to it. Using our example code of 97 35940 56482 4, this means starting with the No. 2 and adding to it the numbers 4, 5, 4, 5 and 7, giving a total of 27.
Multiply the sum obtained in Step 2 by 3. Using our example above, this means the multiplying of 27 by 3, giving a total of 81.
Locate the 11th digit in the code. Using our example code of 97 35940 56482 4, this would be the No. 8.
Starting with the 11th digit, move from right to left across the code adding every second digit to it. Using our example of 97 35940 56482 4, this means starting with the No. 8 and adding to it 6, 0, 9, 3 and 9, giving a total of 35.
Add the results from Step 3 and Step 5. In our example this means adding 81 and 35, giving a total of 116.
Round the result of Step 6 up to the nearest multiple of 10. In our example, this means rounding 116 up to 120.
Subtract the result of Step 7 from the result of Step 6. In our example, this is 120-116, giving us a difference of 4. This 4 should be the 13th number in the EAN-13, otherwise known as the check digit.
In Feburary 2016 29,

Saturday, 27 February 2016

How to Add IntegersIn Feburary 2016 27,

In Feburary 2016 27,
Understand that when numbers have no signs in front of them, they are positive. For example, if you have the problem 3 + 5 = ?, both 3 and 5 are positive. You simply add the numbers together using elementary math. For example, find 3 on a number line and count five places to the right to solve the problem: 3 + 5 = 8. Adding two positive numbers always produces a positive result.
Ignore the signs of the numbers initially when adding two negative numbers. Follow the same procedure for adding positive numbers. For example, for -3 + -5 = ?, make the problem 3 + 5 = ? and solve it. The result will be 8. Once you have a solution, add a negative sign in front of the number. So 8 becomes -8.Think about it this way: Say a friend borrowed $3 from you last week, then borrowed $5 from you today. Your friend now owes you $8.
Examine problems that have one positive number and one negative number. If the positive number is larger, subtract the numbers, and then put the positive sign in front of the answer. For example, suppose the problem were 8 + -3 = ?. You would convert the problem to 8 - 3 = ? The result would be 5. You can also use a number line, start at 8 and go three places to the left to find that 5 is the result.
Subtract the numbers and put a negative sign in front of the result if the negative number is larger. For example, consider -5 + 3 = ? You would subtract 3 from 5 to get 2, then add a negative sign for your result: -2.
In Feburary 2016 27,

Tuesday, 2 February 2016

How to Connect to the MySQL ServerIn Feburary 2016 02,

In Feburary 2016 02,
Connect to a MySQL server running on localhost. The MySQL command-line client's default behavior is to connect to a server running on localhost. This will connect to the server on localhost as the root user with no password. Example:
mysql -u root
Connect to a MySQL server using a password by adding the -p switch. This will connect to localhost as root and prompt you for a password. Example:
mysql -u root -p
Connect to a remote host using the -h switch. A remote host is any server other than localhost. Using the -h switch will connect to a MySQL server running on example.com as root and prompting for a password. Example:
mysql -u root -p -h example.com
Connect to a remote host running on a non-default port, using the -P switch. Note that this command uses a capital P. It should not be confused with the lowercase -p switch, which means prompt for a password. Using the -P switch will connect, as the root user, to a MySQL server running on example.com port 3330 and prompt for a password. Example:
mysql -u root -p -h example.com -P 3330
Connect to a server and use a database. Specify the database to use on the command-line in place of connecting and manually issuing a USE command. It's faster and makes automated scripts work better. Simply add the name of the database onto the end of the MySQL client command-line. This example connects to the database as root and uses the customers database. Example:
mysql -u root -p -h example.com -P 3330 customers
In Feburary 2016 02,