Display 100 random integers in [10, 25] 14 14 18 24 12 25 16 12 18 16 15 16 16 15 17 19 10 21 14 25 21 24 10 19 25 17 19 13 25 24 23 25 15 25 18 23 18 14 24 11 21 12 20 24 14 18 11 12 14 13 14 20 11 16 21 15 15 17 20 24 10 18 20 18 24 23 17 18 15 11 20 19 14 23 20 23 18 22 20 11 10 24 22 12 10 11 11 12 12 13 14 12 15 …

Member Avatar
Member Avatar
+0 forum 8

Problem : String : Hello World Output : H occured 1 times e occured 1 times l occured 3 times o occured 2 times W occured 1 times r occured 1 times d occured 1 times How to do it in Javascript...

Member Avatar
Member Avatar
+0 forum 1

A function to take a text and extract the string between two given substrings. Allows you to find the nth occurence. Also safeguards against dead ends.

Member Avatar
+2 forum 0

In the program i am currently building, i need to do a frequency analysis of the letter occurance in a string I know how to do this in c++ and the code for that is [CODE]#include <iostream> using namespace std; // Function to increment the letter count in the counters array char add_letter( char letter, int letterCount[] ) { // Only deal with lower case letters char lower_case_letter = tolower(letter); // Check if character is a letter if ( lower_case_letter >= 'a' && lower_case_letter <= 'z' ) { ++letterCount[ lower_case_letter - 'a' ]; } return letter; } int main() { …

Member Avatar
Member Avatar
+0 forum 5

Is it pasible to find all occurrences of strings "North" and "North-East" in some txt file and save number of occurrences in some variable??

Member Avatar
Member Avatar
+0 forum 17

hey guys.. greetings to all please help me regarding my problem i want to find how many times a digit has occurred in a number. for example i have an array which consists of numbers 1011 1022 1033 number of 1's= 5 number of 2's= 2 number of 3's= 2 .. i want to to that .. please help how can i do this.

Member Avatar
Member Avatar
+0 forum 21

Hi guys, Could someone help me on this, the problem is: Using array, Ask for 10 integer inputs then display the frequency distribution of the inputs. say, [B]Example Output:[/B] Enter input 1: 2 Enter input 2: 2 Enter input 3: 3 Enter input 4: 4 Enter input 5: 5 Enter input 6: 6 Enter input 7: 5 Enter input 8: 4 Enter input 9: 2 Enter input 10: 1 2s - 3 3s - 1 4s - 2 5s - 2 6s - 1 1s - 1 Here's my own code: [CODE]#include<iostream.h> #include<conio.h> void print_array(int a[], int length) { cout …

Member Avatar
Member Avatar
+0 forum 1

The End.