1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
anygoal [31]
4 years ago
6

You are given an array x of string elements along with an int variable n that contains the number of elements in the array. You

are also given a string variable mode that has been declared. Assign to mode the mode value of the array. (Assume there are no "ties".)
Computers and Technology
1 answer:
jarptica [38.1K]4 years ago
6 0

Answer and Explanation:

Make an algorithm of that which include array x of string where Mode of the value of the array means that you have the values such that 1.2,4,2,6,7,8,2 so 2 is the value of set as it appears more than other number similarly when a array of x has been given.First of all initialize a variable then declare it . so for initialization create a variable .Let suppose i create a variable of add and initialize it with 0 and given a it data type integer then

int add= 0;  // declaration

int add[]=0; // declaration and initialization in array

class add {  

void main(String array[]){  

int add[]=0;//declaration and instantiation  

int add[] = new int [3];

add[0]=30;//initialization  

add[1]=80;  

add[2]=20;  

output the given array of string

for ( int i = 0 ; i <add.length ;i++)

cout <<add[i];

 }

Taking an other example let initialization and declare array of string and print the greater value.For this create a variable with integer data type \

class Test{  

void main(String[] array){  

       //declaration of array

int test[][] = new int [2];

test[0]; new int [2];

test[1]; new int [4];

for initialization of array lets take variable a with data type integer

      int a=0;  

//taking loop for condition

       for (int i=0; i<test.length; i++)  

           for(int j=0; j<test[i].length; j++)  

//if the loops working properly then take increment in the variable a

               test[i][j] = a++;  

this process repeat until loops got false

   for (int i=0; i<test.length; i++)  

           for(int j=0; j<test[i].length; j++)  

         cout<<test[i][j]<<"+"<<"";  

           }  

           System.out.println();

       }  

   }  

You might be interested in
Help!!! Who is this? Who is it from?
sergey [27]
Show: Dragon Ball Super
Character: Vegito
8 0
4 years ago
Read 2 more answers
The home page box will only appear with what people you may know
mariarad [96]
Whats the qustion...
3 0
4 years ago
PLEASE HELP!!<br> Would you ever try and get famous off of social media? Why or why not?
Alexxandr [17]

Answer:

Yes because u could gain a lot of money from it

Explanation:

With more money you have, the more you can give to charity, and the more you can relax

3 0
3 years ago
Read 2 more answers
Which of these exemplifies an iterative process
olasank [31]

Answer:

its D

Explanation:

took the test

6 0
3 years ago
Read 2 more answers
Plagiarism occurs when writers
Law Incorporation [45]
The answer is A. <span>Use others' ideas and writing as their own </span>
7 0
4 years ago
Read 2 more answers
Other questions:
  • Describe network in terms of the class computer lab
    14·1 answer
  • All of the following are recommended to secure a wireless network EXCEPT:
    5·2 answers
  • You have been asked to implement enterprise software for a manufacturer of kitchen appliances. What is the first step you should
    11·1 answer
  • What is the 5 basic steps of computer programing?
    6·1 answer
  • When creating a shape in Word, what are some available options? Check all that apply. adding text to the shape changing the size
    6·1 answer
  • You Could Never Size Me UP! Been Doing This Sh*t A Long ⏱time
    15·1 answer
  • How Much did a case of soda (any kind your choice ) cost in 2004?<br> PLS HELP!!!!!!
    13·1 answer
  • Jose has 3/5 kilogram of peppermints and 2/3 kilogram of candy canes. How many kilograms of candy does he have?
    10·1 answer
  • Create a Python script that will compare two (2) numbers entered by the user. Refer to the attached image and to the following a
    13·1 answer
  • Write a short essay about the best rotary-wing aircraft ever. It must be a specific aircraft and consist of three paragraphs. In
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!