Re: reading integers from a formatted file Programming Software Development by Ancient Dragon >>integers are to be written with eight rows and eight columns … Re: Performance - sessions vs DB Programming Web Development by diafol …min) for each period (max periods = 60) so max 240 integers + max 20 unix timestamps (start/end teaching blocks) = max… 260 integers part3: no max for class data (2 small strings (… end hour, end min and class id [max 3000 integers] Although it seems the above could be simplified, school timetables… Re: instantiation in C# Programming Software Development by cVz integers = new int[10]; Re: Help with C++ Programming Software Development by Bench Integers are only capable of representing whole numbers. Have a look … you do this (Remember that both 3 and 100 are integers) [CODE=CPP] cout << 3/100 ; [/CODE] change your… Re: Am not getting the right answers Programming Software Development by Dave Sinkula Integers are not floating point. Using [font=Courier New]sscanf[/font] … Re: Calculator code, pls help Programming Software Development by jbennet integers only support numbers up to about 30,000 you should use a different variable type such as "long" Re: Problem with rounding off Programming Software Development by WaltP Integers don't have decilam places. You'd need to convert the variables to [I]double[/I]. Re: Soda Machine exact cost = wrap around Programming Software Development by dadam88 Integers don't do decimals I want to do decimals for cents....unless I use int and divide? Re: How to check int variable is null in Java ?? Programming Software Development by Ezzaral Integers cannot be null, so I assume you mean you get null from your input method. Post your code and perhaps someone can advise you on how to deal with the issue. Edit: Sorry, post collision with James. integers Programming Software Development by missy Write a program that will prompt a user to enter an integer between 2 and 999, inclusive. As output, the program will display all prime integers between 2 and the user-input value. This program will use a process of “cancellation integers in an array without reprompting? Programming Software Development by piznut25 … std; cout <<"\nThis program reads 10 integers from you"; cout <<"and sorts …;< "Enter"<< size << "integers: "; for(index = 0; index < MAX_ARRAY_SIZE; index++) cin …QUOTE]I'm trying to fill an array of 10 integers for a program that takes in 10 numbers from the… Re: Integers question Programming Software Development by VernonDozier [QUOTE=SakisLam;624813]Let's say I have the integers A1,A2,A3 and x. I want when the value … than A1, A2, A3, etc. If there are relatively few integers, you could hard code A1, A2, A3, but it will… Integers question Programming Software Development by SakisLam Let's say I have the integers A1,A2,A3 and x. I want when the value of x is 2 (for example) , the caption of a label to return A2's value. If x = 3, to return A3 value and so on. How do I do that? Thanks a lot. Trouble with loops - Calculate sum of even and odd integers Programming Software Development by ShadowOfBlood … = 'a'; cout << "Enter a list of integers followed by the '$' sign: " << endl; cin… odd + num; //Add it to the current sum of odd integers else { i = 1; //Otherwise, make i equal to 1… if(i == 1) cout << "Please enter only integers" << endl; else if(i == 0) { cout… Re: help to sum integers in an array Programming Software Development by vimalkv123 …){ System.out.println("This program sums a range of integers."); //todo call createArray method //todo call sumArray method…){ System.out.println("This program sums a range of integers."); //todo call createArray method int sum = 0; … Re: Trouble with loops - Calculate sum of even and odd integers Programming Software Development by bhoot_jb … } cout << "The sum of the even integers is: " << even << endl;… cout << "The sum of the odd integers is: " << odd << …you have taken the input of "list of integers" in a single integer 'num' itself,… the value of 'num' as a list of integers (digit by digit) :| if this is what… How to read integers from a string on integers of unknown length? Programming Software Development by alphahuman …. The problem is that I don't know how many integers in the string would be otherwise I would have used… 2 5 7 23 6 23 42 The number of integers in a particular line is not fixed and it will… with each line of input. I need to store the integers of particular line in a different array for each line… finding max value of 10 integers Programming Software Development by vietbong87 … { const int MAX_NUM_INTEGERS = 10; int integers[0]; int largest = integers[0]; cout << "Enter …10 intergers: "; cin >> integers[i] for (int i=0; i < …MAX_NUM_INTEGERS; i++){ if (integers[i]> largest){ largest = integers[i]; } } cout << "… help to sum integers in an array Programming Software Development by linda.kean …){ System.out.println("This program sums a range of integers."); //todo call createArray method //todo call sumArray method….length; j++) { System.out.println("The array includes these integers: " + array[i]); } //end method to populate array } //sum… Re: help to sum integers in an array Programming Software Development by stultuske …; j++) { // System.out.println("The array includes these integers: " + array[i]); // } //end method to populate…; n; k++){ System.out.println("The array includes these integers: " + array[k]); sum = sum + array[k…out.println("This program sums a range of integers."); // todo call createArray method int sum … program that calculates under-10 total of a number of integers Programming Software Development by shahanakazi … the under-10 total of a number of integers. The following example will illustrate the process: …6). - The under-10 total of the three integers 93, 42 and 33 is therefore equal to 6…input.dat that contains the following set of integers: 39 88 55 21 90 77 24 … be the under-10 total of all the integers in the input file. Hint: If you … reading integers from a file Programming Software Development by maynardjk13 … cout << "The sum if the integers is:" << sum << endl…; cout << "The average of the integers is:" << avg << endl…; cout << "The number of even integers is:" << ne << endl…; cout << "The number of odd integers is:" << oe << endl;… Stop reading the positive integers once a non-positive integer is entered Programming Software Development by bdl365 … 1. Asks the user to enter some positive integers. 2. Reads the positive integers from the user. 3. Stops reading the positive… b, c, d; cout << "Enter some postive integers & I'll print the sum: "; cin >>…b, c, d; cout << "Enter some postive integers & I'll print the sum: "; cin >>… Re: finding max value of 10 integers Programming Software Development by Aenima …; int main() { const int MAX_NUM_INTEGERS = 10; long int integers[10]; long int i = 0, maximumValue = 0; cout …< MAX_NUM_INTEGERS) { cin >> integers[i]; i++; if (integers[i - 1] > maximumValue) { maximumValue = integers[i-1]; } } cout << … Re: Trouble with loops - Calculate sum of even and odd integers Programming Software Development by ShadowOfBlood The question states: Write a program that reads a set of integers, and then finds and prints the sum of the even and odd integers. I'm assuming it means positive and negative integers. Any ideas? reading integers from a formatted file Programming Software Development by demroth …is a 6 X 6 matrix consisting of integers separated by tabs. I want to read each…Read the first line of the matrix of 6 integers separated by tabs into an array. 3. Compute… { number[i] = (number/interface_speed)/hop_value; } //get all the integers from the file... while(fin.get(ch)) { if(ch != ' '… Re: Trouble with loops - Calculate sum of even and odd integers Programming Software Development by chococrack … tossing your loop off. Are you only interested in positive integers? Because then you could ask for a negative value to… Re: Trouble with loops - Calculate sum of even and odd integers Programming Software Development by ShadowOfBlood … + dig; } cout << "The sum of the even integers is: " << even << endl; cout <…;< "The sum of the odd integers is: " << odd << endl; return 0… Re: Trouble with loops - Calculate sum of even and odd integers Programming Software Development by chococrack …; num; } cout << "The sum of the even integers is: " << even << endl; cout <…;< "The sum of the odd integers is: " << odd << endl; return 0… Entering random Integers into a file sorting them and then printing them out Programming Software Development by xterradaniel …if it does not exist. Write 100 integers created randomly into the file using text I/… me, figure out how to store the random integers in the file and then read them back.… I can create 100 random integers easily, and sorting them should be no problem …HELP ME WITH THE PROPER WAY TO STORE THE INTEGERS AND THEN READ THEM OUT OF A FILE, …