How do I read integers in from a file in Java and put them in an integer array?
Q. I have a text file with integers that are separated by spaces. The integers are all on one line. How would I get these integers from this file and save them into an array?
Asked by BGRIF - Wed Oct 28 15:10:23 2009 - - 2 Answers - 0 Comments

A. char[] anArray; anArray = new char[20]; String txt = "C:/text.txt"; BufferedReader in = new BufferedReader(new FileReader(txt)); String instr = in.readLine(); StringTokenizer st = new StringTokenizer(instr," ",false); String newstr=""; while (st.hasMoreElements()) newstr += st.nextElement(); anArray = newstr.toCharArray(); int[] newArray = new int[20]; for(int i=0;i Answered by Sayee - Wed Oct 28 16:18:15 2009

What is the greatest of 5 consecutive integers if the sum of these integers equals 185?
Q. What is the greatest of 5 consecutive integers if the sum of these integers equals 185?
Asked by Marcela M - Mon Sep 24 23:04:57 2007 - - 2 Answers - 0 Comments

A. If n is the smallest of these integers, then the next four consecutive integers are n+1, n+2, n+3, n+4. Adding all of these up gives 5n + 10 = 185. Solve this for n. Then write the highest one, n+4.
Answered by Geezah - Mon Sep 24 23:09:56 2007

What are the rules for adding and subtracting integers?
Q. A negative plus a negative is a negative answer or positive? And when you multiply two integers that are negative the answers going to be positive, or is that for adding or subtracting integers? Sorry I know this stuff, But I forgot over the summer. Can someone please explain to me , I just need help with what kind of signs to put when adding and subtracting integers.
Asked by smile - Mon Sep 8 18:46:28 2008 - - 4 Answers - 0 Comments

A. hey. its really simple a positive plus a positive = positive a negative plus a positive = negative a negative plus a negative = positive a positive minus a positive = (most of the time a positive but depends on the size of numbers) a negative minus a positive = negative. depending on the size of number) a negative minus a negative = positive same goes for multiplication and devition
Answered by sam.2fisher@ymail.com - Mon Sep 8 18:52:19 2008

How do i code java to find the sum of the the numbers between two integers?
Q. How do i right a method in java to input 2 integers and find the sum of those two integers as well as all the integers in between. thanks!
Asked by The King - Wed Feb 11 09:35:17 2009 - - 3 Answers - 1 Comments

A. Call your variables a and b. Do b subtract a. Loop this may times. Keep a counter of how many times the loop has run, and a variable which is the total number. Each run of the loop, add to the total sum of a and the loop counter.
Answered by TCB - Wed Feb 11 09:40:21 2009

How would you introduce multiplication of integers in a middle-school?
Q. How would you introduce multiplication of integers in a middle-school class and how would you explain that a product of two negative numbers is positive? Write a rationale for your approach.
Asked by pink - Fri Aug 14 12:06:19 2009 - - 6 Answers - 0 Comments

A. When I teach this subject, I use addition to explain why the product of two negatives is a positive. When you ask students what "-1 plus -1" is, they're usually pretty clear about it - "-2". When you ask what "-1 + -1 + -1" is, they can see it's -3. Similarly, -1 times n will be -n. Now - how much is -1 ZERO times? Well, zero. Now ask how much -1 is -1 time! They'll stare at you. And you can explain that it's -1 one less time than zero, or 0 minus -1. That's ONE. How about one less -1? That would be -1 times -2, and it would be 1 minus -1, or TWO. I find this technique helps a lot of students who don't get the "not not" explanation.
Answered by KevinM - Fri Aug 14 12:26:30 2009

How many different positive four-digit integers can be formed if the first digit must be 2 ,the last digit can?
Q. How many different positive four-digit integers can be formed if the first digit must be 2, the last digit cannot be 0 and digits may be repeated?
Asked by Elena T - Fri Jul 31 17:54:16 2009 - - 3 Answers - 0 Comments

A. 9x10^2 possibilities
Answered by Paulie Walnuts - Fri Jul 31 17:59:51 2009

In an addition problem 24 different integers that can be formed by using each of t?
Q. In an addition problem 24 different integers that can be formed by using each of the digits 1,2,3 and 4 exactly once in each integer, are listed. What is the sum of these 24 integers?
Asked by veerendra v - Fri Aug 22 06:00:36 2008 - - 3 Answers - 0 Comments

A. the no.s r 1234 1243 1324 1342 1423 1432 2134 2143 2341 2314 2431 2413 3214 3241 3124 3142 3421 3412 4123 4132 4213 4231 4312 4321 add them up ,by using the calculator. :)))
Answered by matsci0000 - Fri Aug 22 06:10:48 2008

How is the positive integers system represented in Group Theory?
Q. How is the positive integers system represented in Group Theory? How is the positive and negative integers system represented?
Asked by pemd70 - Mon Jul 23 16:13:33 2007 - - 4 Answers - 0 Comments

A. positive integers DO NOT form a group under standard sum or multiplication, since there are NO inverses. the integers form a group using the standard +
Answered by robert - Fri Jul 27 14:01:59 2007

How do I find three consecutive odd integers using unknowns?
Q. So if I need to find three consecutive odd integers such that twice the sum of the first and the second is equal to four times the sum of the second and the third, how do I solve?
Asked by Lena B - Tue Mar 3 18:46:37 2009 - - 1 Answers - 0 Comments

A. Ok we need to find three integers, let's call them x,y,z. If these integers are consecutive odd integers then: y = x + 2 z = x + 4 Then using the second part of your question: 2 ( x + y ) = 4 ( y + z) This is because the left-hand side is 2 times the sum of the first and second integerss and the right-hand side is 4 times the sum of the second and third integers. Then we substitute values into this equation to get: 2 ( x + x + 2) = 4 ( x + 2 + x + 4) 2 ( 2x + 2) = 4 (2x + 6) 4x + 4 = 8x + 24 4x = -20 x = -5 Which would give y = -3 and z = -1. You can now check this: 2 lots of -5 + -3 = 2 x -8 = -16 4 lots of -3 + -1 = 4 x -4 = -16 So your answer is -5, -3, -1 Hope that helps and I've explained it well for you :D
Answered by Fluorosive - Tue Mar 3 19:00:40 2009

How many integers with 4 different digits are there between 1000 and 9999 such that the absolute value of the ?
Q. How many integers with 4 different digits are there between 1000 and 999 such that the absolute value of the difference between the first digit and the last digit is 2? please show works and thank you for all your help!
Asked by xD - Tue Dec 2 06:07:24 2008 - - 3 Answers - 0 Comments

A. answer = (2*8 - 1) * 8 * 7 = 15 * 8 * 7 = 840 8 is (2,0), (3,1), (4,2), (5,3), (6,4), (7,5), (8,6), (9,7). times 2 for they could chage place (thousands be ones and vice versa). but N > 1000, it cannot start with 0, so minus 1.
Answered by Momo & Lili (& Chika, too!) - Tue Dec 2 06:14:05 2008

Find two conscutive odd integers such that the sum of the smaller and 3 times the larger is 234?
Q. Find two conscutive odd integers such that the sum of the smaller and 3 times the larger is 234. I need help. How do u do it Thanks "E"
Asked by BABA - Tue Sep 25 18:19:48 2007 - - 4 Answers - 0 Comments

A. Two consecutive odd integers = x, x + 2 Sooo... x + 3(x + 2) = 234 x + 3x + 6 = 234 4x = 228 x = 57 (And the other number was x + 2, or 59) Check: 57 + 3(59) = 234 57 + 177 = 234 234 = 234
Answered by E - Tue Sep 25 18:26:00 2007

How do I define a bijection between natural numbers and integers?
Q. The question, word for word: Define a bijection between N and Z. N = all natural numbers Z = all integers
Asked by Taylor - Fri Sep 12 00:33:33 2008 - - 2 Answers - 0 Comments

A. There is a one-to-one correspondence between N and Z, so the cardinality of both sets is aleph-null..otherwise known as the countable infinity...try it!
Answered by phoenix - Fri Sep 12 00:42:06 2008

What is the difference between the first and last term of a sequence of 1000 Consecutive even integers?
Q. What is the difference between the first and last term of a sequence of 1000 Consecutive even integers? I think it would be 2000, but I am not sure. Can anybody explain this problem to me? Thanks! Yes, as one answerer pointed out, I thought that zero would be considered the first integer and got the wrong answer. (2000 haha). Oh well I got ever other math question right so I predict I got a 76 total math.
Asked by Tony - Wed Oct 15 15:44:40 2008 - - 3 Answers - 0 Comments

A. x is the first number x + 999 * 2 is the last number x + 1998 - x = 1998 2000 would be the difference between the first and last term of a sequence of 1001 consecutive even integers. If it was 3 consecutive even integers, and the numbers were 2, 4, 6, the difference would be 4, which is: x + (n - 1) * 2 - x = x + (3 - 1) * 2 - x = 2 * 2 = 4
Answered by Elmyr - Wed Oct 15 15:50:49 2008

If you write down the integers between 1 and 100 inclusive, then how many times will you write the number one?
Q. If you write down the integers between 1 and 100 inclusive, then how many times will you write the number one?
Asked by Dawn M - Wed Sep 9 21:07:04 2009 - - 1 Answers - 0 Comments

A. 21 times 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 31, 41, 51, 61, 71, 81, 91, 100
Answered by Shane N - Wed Sep 9 21:12:35 2009

Can someone help me with equations and integers?
Q. I'm having trouble in math with integers and equations. Can someone give me helpful hints for them please?
Asked by danredirish - Thu Jun 1 20:29:19 2006 - - 4 Answers - 0 Comments

A. thats why you have a teacher
Answered by You Betcha! - Thu Jun 1 20:59:01 2006

How do i find the sum of 3 consecutive integers in math?
Q. Like if they said the sum of 3 consecutive integers is 350, how would you solve that?
Asked by Julie D - Tue Nov 13 20:54:08 2007 - - 3 Answers - 0 Comments

A. Three consecutive integers are integers that are right next to each other, like 3,4,5; 7,8,9; 50,51,52, etc. So you have your first integer, call it n. Then your second integer has to be n+1. What about your third integer? Take the sum of your three integers, set equal to 350, and solve for n.
Answered by diamondlance2 - Tue Nov 13 20:59:14 2007

What are the values of the three positive integers?
Q. The sum of three positive integers is 33. The product of the same three integers is 935. The sum of the cubes of the same three integers is 6369.
Asked by scurrykep - Mon Feb 23 10:14:11 2009 - - 1 Answers - 0 Comments

A. 5,11,and 17
Answered by just another person - Mon Feb 23 20:08:09 2009

How many 3-digit integers are there in which the tens and the ones digits are different? (You many repeat numb?
Q. How many 3-digit integers are there in which the tens and the ones digits are different? (You many repeat numbers)
Asked by Zack - Sun May 3 17:41:47 2009 - - 1 Answers - 0 Comments

A. For the hundreds digit, you can choose any value from 1-9. That's 9 free choices to make. For the tens digit, you can choose any value from 0-9. That's 10 independent, free choices to make. For the ones digit, you can choose any value from 0-9 EXCEPT for the one you already chose for the tens digit. That's 9 free choices. Total possibilities: 9 * 10 * 9 = 810 possibilities.
Answered by rotational_symmetry - Mon May 4 12:58:54 2009

What is the average (arithmetic mean) of all the even integers greater than 26 and less than 322?
Q. What is the average (arithmetic mean) of all the even integers greater than 26 and less than 322? The answer is 174. Could you please explain WHY because I don't understand how to get to that number.
Asked by Egg Muffin - Thu Apr 17 11:02:04 2008 - - 3 Answers - 0 Comments

A. Average is the result obtained by dividing aggregate of all accounted for by the number of elements considered. Hence it is the number exactly equidistant from either side always. The example case considers 196 numbers in total. This sum ethically has only one defined way to solve. That is taking sum of all the numbers and dividing it by the number of samples in consideration. But practically the result is obtained by adding the first and the last term, and dividing it by 2. Why? As all other numbers can be found equidistant in pairs from this.
Answered by kg7777 - Thu Apr 17 11:33:37 2008

How many integers from 100 through 999 must you pick?
Q. How many integers from 100 through 999 must you pick in order to be sure that at least two of them have a digit in common? (For example, 256 and 530 have the common digit 5.)
Asked by Kenny - Tue Dec 4 06:16:39 2007 - - 1 Answers - 0 Comments

A. I suspect that it will have to be 10. You may pick 111, then 222, then 333, etc So you could have 9 numbers without sharing any digits, but after that you would have to have a digit in common.
Answered by Sue E - Tue Dec 4 06:25:29 2007

From Yahoo Answer Search: 'Integers'
Wed Nov 18 21:53:56 2009 [ refresh local cache ]

Two Summer Difference Certainties - Mathematical Association of America
news.google.com
Two Summer Difference Certainties

Mathematical Association of America

Let's begin by studying small sets of positive integers {a 1 , a , ... , a k } with the property that all possible k(k-1)/2 unordered pairs have unique sums ...
Google News Search: Integers,
Fri Oct 16 21:46:58 2009
diving off the coral reef of integers jpg
educationallearninggames.com
diving off the coral reef of integers jpg
260px x 259px | 34.00kB

[source page]



Yahoo Images Search: Integers,
Sun Oct 25 19:05:32 2009
Helpful Links: Fractions / Integers
lostmountain.typepad.com
Helpful Links: Fractions / Integers

Vicky Treadway

Mon, 10 Aug 2009 21:41:48 GM

Practice with Positives and Negatives (. Integers. ). Integers. .html tutorial and quizzes. tutorial and practice ...

Google Blogs Search: Integers,
Fri Oct 16 21:46:59 2009